We are working on JMS client (not MDB) implementation for a queue where messages delivered from MQ series. The message delivered is of class type com.ibm.jms.JMSBytesMessage. We tried using readBytes/readUTF API to read the message content and failed to read. Using readBytes we were able to read but it displayed only junk characters.
We feel either the message is not read completely or the messages posted is not in the format we read. The original message posted in MQ is of String type by weblogic integration system. But at other side when we receive it as JMSBytesMessage.
1. How can we read messages from JMSBytesMessage?
2. What could have gone wrong in between to receive JMSBytesMessage whereas the original posted message is of String type?