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 properties to MQMD mapping

Post new topic  Reply to topic
 JMS properties to MQMD mapping « View previous topic :: View next topic » 
Author Message
shyam532
PostPosted: Wed Jul 29, 2009 8:40 am    Post subject: JMS properties to MQMD mapping Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Wed Jul 29, 2009 8:48 am    Post subject: Reply with quote

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
View user's profile Send private message
shyam532
PostPosted: Wed Jul 29, 2009 8:55 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Wed Jul 29, 2009 8:56 am    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Wed Jul 29, 2009 9:45 am    Post subject: Re: JMS properties to MQMD mapping Reply with quote

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
View user's profile Send private message Send e-mail
Vitor
PostPosted: Wed Jul 29, 2009 10:02 am    Post subject: Re: JMS properties to MQMD mapping Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Wed Jul 29, 2009 7:01 pm    Post subject: Reply with quote

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
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 » JMS properties to MQMD mapping
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.