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 » WebSphere Message Broker (ACE) Support » MQ Header Attributes

Post new topic  Reply to topic
 MQ Header Attributes « View previous topic :: View next topic » 
Author Message
RB
PostPosted: Wed Mar 07, 2007 8:09 am    Post subject: MQ Header Attributes Reply with quote

Acolyte

Joined: 23 May 2006
Posts: 56

Hi All,

We are trying to use some of the MQMD header attributes to find out the type of transaction and the application (used for routing). We were trying to avoid parsing the message content in the router. We tried to use ApplIdentityData and PutApplName in the MQMD header. We are using MB6, MQ6.

We have a requirement to send these messages to an application which is using MDB to get messages from the queue. But they are not able to retrieve the ApplIdentityData in the MDB since they are using JMS to get the messages. The PutApplName in the MQMD field is getting mapped to the JMSXAppID in the JMS header and the ApplIdentityData field is not mapped at all. I would appreciate if anyone could let me know if there is any way to retrieve the 'ApplIdentityData' from the JMS message.

We are expecting the MDB to send a response message, with the original ApplIdnentityData and PutApplName.

Is it possible to add custom header attributes to the message and retain them in the JMS header? Any help on this is greatly appreciated.

Regards,
RB
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Mar 07, 2007 8:13 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You can add JMS Properties to the jms portions of the MQRFH2 header, and then JMS will retrieve them.

See the Using Java manual section on mapping JMS messages to MQ messages.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Mar 07, 2007 8:14 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

If you're using JMS to retireve the message then typically the message includes the optional MQRFH2 header onto which some of the JMS header fields are mapped (details of the JMS <-> MQ mapping is in the Using Java manual).

The MQRFH2 allows for custom attributes in the usr section, though you may find the provided attributes sufficient for routing.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
RB
PostPosted: Wed Mar 07, 2007 8:16 am    Post subject: Reply with quote

Acolyte

Joined: 23 May 2006
Posts: 56

Thanks for the quick reply. I will try this out and let you know.

Regards,
RB
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 » WebSphere Message Broker (ACE) Support » MQ Header Attributes
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.