ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Cannot convert byte message to text message error

Post new topic  Reply to topic
 Cannot convert byte message to text message error « View previous topic :: View next topic » 
Author Message
robiijohn
PostPosted: Thu Aug 14, 2008 5:00 am    Post subject: Cannot convert byte message to text message error Reply with quote

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
View user's profile Send private message
bower5932
PostPosted: Thu Aug 14, 2008 9:43 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
fjb_saper
PostPosted: Thu Aug 14, 2008 1:53 pm    Post subject: Re: Cannot convert byte message to text message error Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Cannot convert byte message to text message error
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.