protected ActiveMQMessage(final Message foreign, final byte type, final ClientSession session) throws JMSException { this(type, session); setJMSTimestamp(foreign.getJMSTimestamp());
protected ActiveMQMessage(final Message foreign, final byte type, final ClientSession session) throws JMSException { this(type, session); setJMSTimestamp(foreign.getJMSTimestamp());
protected ActiveMQMessage(final Message foreign, final byte type, final ClientSession session) throws JMSException { this(type, session); setJMSTimestamp(foreign.getJMSTimestamp());
protected ActiveMQMessage(final Message foreign, final byte type, final ClientSession session) throws JMSException { this(type, session); setJMSTimestamp(foreign.getJMSTimestamp());
protected ActiveMQMessage(final Message foreign, final byte type, final ClientSession session) throws JMSException { this(type, session); setJMSTimestamp(foreign.getJMSTimestamp());
/** * Loads the message header fields with significant values. */ public static void configureMessage(final ActiveMQMessage m) throws JMSException { m.setJMSMessageID("ID:messageID777"); m.setJMSTimestamp(123456789L); m.setJMSCorrelationID("correlationID777"); m.setJMSReplyTo(ActiveMQJMSClient.createQueue("ReplyToQueue")); m.setJMSDestination(ActiveMQJMSClient.createQueue("DestinationQueue")); m.setJMSDeliveryMode(DeliveryMode.PERSISTENT); m.setJMSExpiration(987654321L); m.setJMSPriority(9); m.setBooleanProperty("booleanProperty", true); m.setByteProperty("byteProperty", (byte) 2); m.setShortProperty("shortProperty", (short) 3); m.setIntProperty("intProperty", 4); m.setLongProperty("longProperty", 5L); m.setFloatProperty("floatProperty", 6); m.setDoubleProperty("doubleProperty", 7); m.setStringProperty("stringPoperty", "someString"); m.setStringProperty("JMSXNaughtyProperty", "aardvark"); }