Examples of JMSPropertyType


Examples of org.objectweb.celtix.transports.jms.context.JMSPropertyType

    public void insertContextInfo(OutputStreamMessageContext octx) {
        //Set time to live and default receive timeout so as to timeout the client
        JMSMessageHeadersType requestHeader = new JMSMessageHeadersType();
        requestHeader.setTimeToLive(100L);
        List<JMSPropertyType> props = requestHeader.getProperty();
        JMSPropertyType skipResponseProperty = new JMSPropertyType();
        skipResponseProperty.setName(JMSTRANSPORT_SKIP_RESPONSE);
        skipResponseProperty.setValue("true");
        props.add(skipResponseProperty);
        octx.put(JMSConstants.JMS_CLIENT_REQUEST_HEADERS, requestHeader);
        octx.put(JMSConstants.JMS_CLIENT_RECEIVE_TIMEOUT, new Long(10));

    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.