Author |
Message
|
shyam532 |
Posted: Wed Jul 29, 2009 8:40 am Post subject: JMS properties to MQMD mapping |
|
|
Newbie
Joined: 25 Jul 2009 Posts: 2
|
Hi,
In my application I am setting a JMS message property as msg.setStringProperty("ErrorCode","20009"); and sending the msg to MQ.
on the other side of MQ, another application is picking my msg as MQMessage.
My question is, how to retrive the "ErrorCode" property.
Thnx |
|
Back to top |
|
 |
Vitor |
Posted: Wed Jul 29, 2009 8:48 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
If you're using JMS, why not just retrieve the property? Why try and use the underlying structures? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
shyam532 |
Posted: Wed Jul 29, 2009 8:55 am Post subject: |
|
|
Newbie
Joined: 25 Jul 2009 Posts: 2
|
Actually I am sending this JMS messge to Message Broker.
and WMB will receive this message as MQMessage. so, how/where they can find my custom property. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Jul 29, 2009 8:56 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
shyam532 wrote: |
so, how/where they can find my custom property. |
The usr folder of the RFH2 header. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Jul 29, 2009 9:45 am Post subject: Re: JMS properties to MQMD mapping |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
shyam532 wrote: |
Hi,
In my application I am setting a JMS message property as msg.setStringProperty("ErrorCode","20009"); and sending the msg to MQ.
on the other side of MQ, another application is picking my msg as MQMessage.
My question is, how to retrive the "ErrorCode" property.
Thnx |
Well if you sent your message with a destination type of JMS the property will be in the RFH. If you sent your message with a destination type of MQ (targetClient=1) then your RFH was stripped and your property is lost.
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
Vitor |
Posted: Wed Jul 29, 2009 10:02 am Post subject: Re: JMS properties to MQMD mapping |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
fjb_saper wrote: |
shyam532 wrote: |
Hi,
In my application I am setting a JMS message property as msg.setStringProperty("ErrorCode","20009"); and sending the msg to MQ.
on the other side of MQ, another application is picking my msg as MQMessage.
My question is, how to retrive the "ErrorCode" property.
Thnx |
Well if you sent your message with a destination type of JMS the property will be in the RFH. If you sent your message with a destination type of MQ (targetClient=1) then your RFH was stripped and your property is lost.
Enjoy  |
I so have to stop commenting on Java posts....  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Jul 29, 2009 7:01 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Caveat... forgot to mention that MQ V7 is different...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|