|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQ to JMS message |
« View previous topic :: View next topic » |
Author |
Message
|
rkford11 |
Posted: Tue Jan 11, 2005 9:34 am Post subject: MQ to JMS message |
|
|
Partisan
Joined: 06 Jun 2004 Posts: 316
|
I have just started working with JMS so please guide me.
I have an MQ message and the receiving application is an JMS application.
i have to convert the message to JMS text message, i know i have to set MQRFH2 header but , what are all the properties i have to set so that the MQ message gets converted to JMS text message.
Thanks |
|
Back to top |
|
 |
EddieA |
Posted: Tue Jan 11, 2005 10:09 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Quote: |
i know i have to set MQRFH2 header |
Not necessary. JMS can read an MQ message without an RFH2 header.
Jake sure the Format is MQSTR.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
rkford11 |
Posted: Tue Jan 11, 2005 11:17 am Post subject: |
|
|
Partisan
Joined: 06 Jun 2004 Posts: 316
|
EddieA wrote: |
Quote: |
i know i have to set MQRFH2 header |
Not necessary. JMS can read an MQ message without an RFH2 header.
Jake sure the Format is MQSTR.
Cheers, |
Thanks EddieA.
But if i have to publish the message i have to use MQRFH2. am i right.
Thanks |
|
Back to top |
|
 |
EddieA |
Posted: Tue Jan 11, 2005 12:58 pm Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Quote: |
i have to publish the message |
If you are talking about Pub/Sub, then yes, your Subscribers need to build an RFH2 in order to register for the publications, and your Publishers need to provide an RFH2 with the publication information.
Reading between the lines of both your posts, it sounds like you might be trying to write a JMS program that takes an existing MQ message, and then Publishes it. Is that it. If so, then all you need do is build the Publishing information in the program. A program written using JMS can read a message either with, or without, an RFH2 seamlessly. When it writes a message, it will always include the RFH2, unless you tell the program specically NOT to include one.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
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
|
|
|
|