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 » Convert JMS BytesMessage object to com.ibm.mq.MQMessage Obje

Post new topic  Reply to topic
 Convert JMS BytesMessage object to com.ibm.mq.MQMessage Obje « View previous topic :: View next topic » 
Author Message
rajesh_avrs
PostPosted: Sun May 04, 2003 2:46 am    Post subject: Convert JMS BytesMessage object to com.ibm.mq.MQMessage Obje Reply with quote

Apprentice

Joined: 18 May 2001
Posts: 31

Hello all,

I have written a plain MQJMS program using which I am reading a message from the MQSeries Queue. My requirement is to convert this JMS BytesMessage object to a com.ibm.mq.MQMessage object. Is there a way to do this?

Any hints will be greatly appreciated.

Regards,
Rajesh
Back to top
View user's profile Send private message Send e-mail
vennela
PostPosted: Sun May 04, 2003 8:39 pm    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

This may be of some help:

Refer to Chapter12 of Using java manual. There is a section called "Mapping JMS messages onto WebSphere MQ messages".

-------
Venny
Back to top
View user's profile Send private message Send e-mail Visit poster's website
rajesh_avrs
PostPosted: Sun May 04, 2003 9:03 pm    Post subject: Reply with quote

Apprentice

Joined: 18 May 2001
Posts: 31

This section gives the mapping of JMS header to the MQMD header. However, the event data is present in the 'Data' section of an MQMessage, but not in MQMD.

When I do a get(MQMessage, GMO), MQMessage object is being populated with the event data. When I pass this object to PCF it works fine. However, when I use jms method recieve(), the jms object MQJMSBytesMessage gets populated with the event data. I am copying a byte copy of this object's contents to an MQMessage object and then trying to pass it to a PCFMessage. But this is not yielding to a proper PCFMessage and it is throwing an error in initialize() method. I think when I am doing bytecopy some internal representation is getting messed up.

Any ideas?
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 » Convert JMS BytesMessage object to com.ibm.mq.MQMessage Obje
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.