Author |
Message
|
muruga |
Posted: Wed Jul 28, 2004 7:49 pm Post subject: JMSXAppID |
|
|
Newbie
Joined: 28 Jul 2004 Posts: 1
|
Dear all
for message identification purpose i want to set JMSXAppID property n my MessageSender java.
can u help me to how to attach this property to my outgoing message.
thanx n advance
regards
muruganandam |
|
Back to top |
|
 |
fridlyos |
Posted: Thu Aug 19, 2004 9:44 am Post subject: JMSXAppID |
|
|
 Newbie
Joined: 19 Aug 2004 Posts: 5
|
Sorry, I don't know the answer.
I have to do the same thing and hoping you would know by now.
Any help would be greatly apriciated.
Thanks in advance |
|
Back to top |
|
 |
RogerLacroix |
Posted: Thu Aug 19, 2004 12:22 pm Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
In the MQ JNDI, alter the QCF so that the attribute 'ClientId' has the userid value you would like to use.
Regards
Roger Lacroix _________________ Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter |
|
Back to top |
|
 |
fridlyos |
Posted: Thu Aug 19, 2004 1:33 pm Post subject: JMSXAppID |
|
|
 Newbie
Joined: 19 Aug 2004 Posts: 5
|
Thanks very much.
Can ou point me where MQ JNDI is - I'm a little new to this (MQ in particular)
Thanks again..... |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Aug 19, 2004 2:51 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Standard way to set JMSXAppID on the message would be
message.setProperty(MQJMSC.JMSXAppID, myapp);
or something of the kind.
Sorry working from memory here. Check out the manual to make sure this is a writable property.
Enjoy
F.J. |
|
Back to top |
|
 |
RogerLacroix |
Posted: Thu Aug 19, 2004 8:14 pm Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
I'm pretty sure that JMSXAppID is a read only field. (But you can test it.)
Regards,
Roger Lacroix _________________ Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter |
|
Back to top |
|
 |
fridlyos |
Posted: Fri Aug 20, 2004 6:17 am Post subject: JMSXAppID |
|
|
 Newbie
Joined: 19 Aug 2004 Posts: 5
|
Actually what I need to do is modify message descriptor's putApplName variable.
I know it could be done in C, but don't know if it could be done in java.
JMS is out, it seems. Do you know by any chance if it could be done by mq java classes (not jms) privided by IBM?
Thank you... |
|
Back to top |
|
 |
RogerLacroix |
Posted: Fri Aug 20, 2004 10:25 am Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
Hi fridlyos,
muruga's original question was set to JMSXAppID in Java/JMS - hence, setting the message's MQMD UserID to a particular value. See my previous posts.
Now your new question (you should have created a new thread) has nothing to do with the MQMD UserID field. As far as I know, the MQMD PutApplName field is NOT available under the Java / JMS specification. But this field is available under WMQ base Java.
i.e.
Code: |
sendMsg.putApplicationName = "MyPGM"; |
Regards,
Roger Lacroix _________________ Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter |
|
Back to top |
|
 |
aks |
Posted: Sun Sep 12, 2004 5:05 pm Post subject: |
|
|
Voyager
Joined: 19 Jul 2002 Posts: 84
|
I've used the following to set the application id in a RFH2 header
jmsMessage.setStringProperty("ApplIdentityData", "blah blah");
Alan |
|
Back to top |
|
 |
RogerLacroix |
Posted: Wed Sep 15, 2004 10:00 am Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
aks,
Your code of
Code: |
jmsMessage.setStringProperty("ApplIdentityData", "blah_blah"); |
does NOT do what you expect. It does NOT update ApplIdentityData field of the MQMD. Rather it creates a Property field in the usr folder like:
Code: |
<usr><ApplIdentityData>blah_blah</ApplIdentityData></usr> |
Fields like JMSXUserID, JMSXAppID, etc.. are READ-ONLY type fields, you cannot set them.
If you are ok with using the usr folder then the setStringProperty() method is the way to go.
Regards,
Roger Lacroix _________________ Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter |
|
Back to top |
|
 |
aks |
Posted: Wed Sep 15, 2004 2:32 pm Post subject: |
|
|
Voyager
Joined: 19 Jul 2002 Posts: 84
|
Quote: |
does NOT do what you expect. It does NOT update ApplIdentityData field of the MQMD. Rather it creates a Property field in the usr folder like: |
I know - but that's what I use to read the data in the RFHUTIL header in MQSI.
Other fields like JMS_IBM_MsgType, JMS_IBM_Report_Pass_Msg_ID, and JMS_IBM_Report_Pass_Correl_ID are also set with the setIntProperty which are required when using MQReplyTo nodes, for example.
Alan |
|
Back to top |
|
 |
|