Package org.objectweb.celtix.transports.jms.context

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


    public void checkContextHeader(MessageContext ctx, String headerName) {
       
        assertTrue("JMSContext should contain the property " + headerName,
                          null != ctx.get(headerName));
      
        JMSMessageHeadersType reqHdr = (JMSMessageHeadersType)
                ctx.get(headerName);
        assertTrue("JMSHeader correlation id mismatch: expected " + TEST_CORRELATION_ID,
                          TEST_CORRELATION_ID.equals(reqHdr.getJMSCorrelationID()));
        assertTrue("JMSRedelivered should be false",
                   !reqHdr.isSetJMSRedelivered());
        assertTrue("JMS priority should be 6", reqHdr.getJMSPriority() == 6);
        assertTrue("JMS timetolive should be greater than 0 ", reqHdr.getTimeToLive() > 0);
    }
View Full Code Here

TOP

Related Classes of org.objectweb.celtix.transports.jms.context.JMSMessageHeadersType

Copyright © 2018 www.massapicom. 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.