|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
|
|
Cannot convert byte message to text message error |
« View previous topic :: View next topic » |
Author |
Message
|
robiijohn |
Posted: Thu Aug 14, 2008 5:00 am Post subject: Cannot convert byte message to text message error |
|
|
Newbie
Joined: 13 Aug 2008 Posts: 7
|
Hi ,
I am putting the MQMessage in to the queue.....
but when i tried to retrieve the same message using mdb listener the data has become Byte message....i don't really know why it is taking as Byte message instead of textMessage....
Is there any settings or code required.. |
|
Back to top |
|
|
bower5932 |
Posted: Thu Aug 14, 2008 9:43 am Post subject: |
|
|
Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
How are you putting the message? Try browsing the message with amqsbcg and see what the Format of the message is. |
|
Back to top |
|
|
fjb_saper |
Posted: Thu Aug 14, 2008 1:53 pm Post subject: Re: Cannot convert byte message to text message error |
|
|
Grand High Poobah
Joined: 18 Nov 2003 Posts: 20729 Location: LI,NY
|
robiijohn wrote: |
Hi ,
I am putting the MQMessage in to the queue.....
but when i tried to retrieve the same message using mdb listener the data has become Byte message....i don't really know why it is taking as Byte message instead of textMessage....
Is there any settings or code required.. |
To be retrieved as a JMS TextMessage the message MUST be posted with a specific MQ format: MQFMT_STRING....
This is done on the MQMD or any chained specific header (RFH, SAPH, etc...)
Enjoy _________________ MQ & Broker admin |
|
Back to top |
|
|
|
|
|
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|