This content has been marked as final. Show 1 reply
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:
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?