|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Convert JMS BytesMessage object to com.ibm.mq.MQMessage Obje |
« View previous topic :: View next topic » |
Author |
Message
|
rajesh_avrs |
Posted: Sun May 04, 2003 2:46 am Post subject: Convert JMS BytesMessage object to com.ibm.mq.MQMessage Obje |
|
|
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 |
|
 |
vennela |
Posted: Sun May 04, 2003 8:39 pm Post subject: |
|
|
 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 |
|
 |
rajesh_avrs |
Posted: Sun May 04, 2003 9:03 pm Post subject: |
|
|
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 |
|
 |
|
|
 |
|
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
|
|
|
|