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 » RFH2 headers in WBIMB

Post new topic  Reply to topic
 RFH2 headers in WBIMB « View previous topic :: View next topic » 
Author Message
kwelch
PostPosted: Fri Apr 22, 2005 8:06 am    Post subject: RFH2 headers in WBIMB Reply with quote

Master

Joined: 16 May 2001
Posts: 255

Hi,

I have a WBIMB flow where I receive a request with a RFH2 header that I have to remove because the next app can't handle it. I remove it and store it to a queue so that I can put it back on for the reply. This works fine. I get the reply, retrieve the RFH2 header using the MQGET support pac, everything looks good. I build the reply message by copying the Input MQMD, set the Format to MQHRF2, Copy the RFH2 information, then copy the InputBody of the message. In debugger I can see that everything is being built correctly. As soon as the message leaves my compute node something gets changed. In the MQRFH2 header the <mcs><Msd>jms_text</Msd><mcd> gets changed to the following: <mcs><Msd>xml</Msd><mcd>. Also I noticed after the usr tag another Format tag gets added but it is null. The JMS app that reads this message then bombs saying invalid messagetype bytes. I don't know much about JMS but they are telling me it is because the above field is not jms_text. Has anyone come across this and if so is there a solution? Thanks in advance for any advice you can offer.

Karen
Back to top
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Fri Apr 22, 2005 3:28 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

This looks all very complicated to me.

If I may suggest:

on arrival from request:
a) put request on dest queue (dest queue type mq) it will strip the RFH header.
b) clear the message payload and persist the message in the hold space

On arrival of the response
a) read the response and
b) read the message from your hold space
c1) swap payload or
c2) read all attributes from request and put on response

Enjoy
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 » RFH2 headers in WBIMB
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.