activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jai_M <>
Subject Selector and payload
Date Tue, 27 Jul 2010 00:18:36 GMT

This might be a really stupid question but I had to get it cleared.

I create a ActiveMQTextMessage with a simple string. 

ActiveMQTextMessage message = new ActiveMQTextMessage();
message.setProperty("msgOpCode", "some_Op_code");				
message.setText("Some string");

I am able to apply selectors on the property msgOpCode as well as the text.

The JMS specification says that "Only messages whose header and property
values match the selector are delivered"
So, what exactly is a payload in a ActiveMQMessage. I want the contents that
I set in the text to be the  payload/body of the message. How do I set this
View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message