ServiceMix JMS consumer uses DefaultConsumerMarshaler for TextMessage. You
can send a javax.jms.TextMessage with any text content. you can  add the
filenames etc that you require to it(can create some xml structure). 

If you do not want to use TextMessage then you can write your own marshaller
and configure it in your xbean configuration.




Gordon Dickens wrote:
> 
> Hello,
> 
> Can anyone point me to an example of sending a JMS message in ServiceMix 
> using JBI?  I am trying to send a JMS message indicating that a file has 
> arrived in a directory.  I would like the message to include at a 
> minimum the filename and directory.
> 
> I have looked through several JMS examples and I could not find any 
> clear indication of how to send custom contents (such as file name and 
> directory).
> 
> Thanks,
> Gordon Dickens
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Example-of-custom-JMS-msg-tf4063192s12049.html#a11545012
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to