web stats
Mirth Community - View Single Post - JMS Reader (/Writer) and non TextMessage
View Single Post
  #1  
Old 06-16-2012, 06:14 AM
Ex˙ Ex˙ is offline
What's HL7?
 
Join Date: Aug 2007
Location: Berlin
Posts: 2
Ex˙
Default JMS Reader (/Writer) and non TextMessage

Hi all,

I'm reading a JMS queue by a JMS Reader channel which works well (except JNDI issues discussed elsewhere) as long as the message put into the queue is a javax.jms.TextMessage.

If the message is a javax.jms.BytesMessage (and that was the default before) the channel just seems to issue the .toString method to the payload and continues to proceed with the pointer representation to the byte array.

Actually, not too much content in there...

Is there a chance to process anything else besides a TextMessage or do I have to convert everything into a String before queueing?

Thx,

Stefan
Reply With Quote