activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cobrien <>
Subject Re: Selector and payload
Date Tue, 27 Jul 2010 17:53:46 GMT

I don't think  most providers read the JMS  as  exclusionary but anyway if
you want to use only API provided by the JMS specifications then you can. 
The examples included with  ActiveMQ  provide examples on how to send
messages using only the  JMS standard API. 
ActiveMQ reference guide at

Jai_M wrote:
> 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.setJMSType("text");
> 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