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 » JMS MQRFH2 header and traditional WebSphere MQ applications

Post new topic  Reply to topic
 JMS MQRFH2 header and traditional WebSphere MQ applications « View previous topic :: View next topic » 
Author Message
rsinha
PostPosted: Wed Sep 10, 2003 8:25 am    Post subject: JMS MQRFH2 header and traditional WebSphere MQ applications Reply with quote

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
View user's profile Send private message
EddieA
PostPosted: Wed Sep 10, 2003 12:29 pm    Post subject: Reply with quote

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

MQSeries.net Forum Index » IBM MQ Java / JMS » JMS MQRFH2 header and traditional WebSphere MQ applications
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.