This content has been marked as final.
Show 1 reply
-
1. Re: Regarding SpyObjectMessage in JMS
jaikiran Sep 8, 2006 11:45 AM (in response to chaitanya_gogineni)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?