[jboss-user] [Beginners Corner] - Re: Regarding SpyObjectMessage in JMS

jaikiran do-not-reply at jboss.com
Fri Sep 8 11:45:16 EDT 2006


anonymous wrote : Can anyboy help me how to covert the SpyObjectMessage to a TextMessage or how to display the text in a SpyObjectMessage
JMS Message can be of different types:
1) BytesMessage
2) MapMessage
3) ObjectMessage
4) StreamMessage
5) TextMessage 

In short, the Message that you receive need not contain text. It can be of any of the above mentioned types. So you cannot get text out of a Message which is of type MapMessage or some other Message.

Why are you trying to print the message contents, if its not a TextMessage?


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970394#3970394

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970394



More information about the jboss-user mailing list