|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
JMS MQRFH2 header and traditional WebSphere MQ applications |
« View previous topic :: View next topic » |
Author |
Message
|
rsinha |
Posted: Wed Sep 10, 2003 8:25 am Post subject: JMS MQRFH2 header and traditional WebSphere MQ applications |
|
|
Apprentice
Joined: 29 Aug 2003 Posts: 42
|
Hi,
I'm using JMS to add MQRFH2 header, together with some properties in the <usr> folder, to the message. After putting such message on the Q, when I browse this Q using one of the MQ browser tool, it shows me following after MQRFH2 header -
<mcd><Msd>jms_text</Msd>
</mcd> ...T<jms><Dst>queue:///QUEUE1.OUTBOUND</Dst>
<Tms>5914583</Tms><Dlv>2</Dlv></jms>
...h<usr><CustomerId>Cust2</CustomerId>
<MessageId>Message123</MessageId>
<MessageType>PO</MessageType>
</usr> message1 '
As you can see there are 3 folders, <mcd>, <jms> and <usr>. This message will be retrieved by a trading partner, who's not using JMS, but are expecting MQRFH2 header, together with <mcd> and <usr> folders only, no <jms> folder.
Two questions -
1. Would traditional WebSphere MQ application be able to handle such Message, i.e. be able to ignore <jms> folder.
2. Is there a way to tell JMS, not to add <jms> folder (probably not). If not, what are the alternatives. Does it mean, I can't use JMS's MQRFH2 functionality that does so many things transparent to the application, like adding the fixed portion of MQRFH2 header, calculating the total size of the header, plus properties in <usr> folder. |
|
Back to top |
|
 |
EddieA |
Posted: Wed Sep 10, 2003 12:29 pm Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
1. A 'traditional' MQ application would see the RFH2 header as part of the payload, following the GET. It would have to have code to skip over this to get to the data.
2. No, you can't tell JMS to leave out the JMS folder, only to not put any at all. If the trading partner already has code to get to, and parse, the other folders, it should be trivial to ignore any additional ones.
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
|
|
|
|