|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQ Header Attributes |
« View previous topic :: View next topic » |
Author |
Message
|
RB |
Posted: Wed Mar 07, 2007 8:09 am Post subject: MQ Header Attributes |
|
|
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 |
|
 |
jefflowrey |
Posted: Wed Mar 07, 2007 8:13 am Post subject: |
|
|
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 |
|
 |
Vitor |
Posted: Wed Mar 07, 2007 8:14 am Post subject: |
|
|
 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 |
|
 |
RB |
Posted: Wed Mar 07, 2007 8:16 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
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
|
|
|
|