|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Over-riding the JMSXAppID/putApplName in JMS |
« View previous topic :: View next topic » |
Author |
Message
|
Rob_S |
Posted: Wed Jul 04, 2007 8:52 am Post subject: Over-riding the JMSXAppID/putApplName in JMS |
|
|
Newbie
Joined: 22 Jun 2007 Posts: 1
|
Hi All,
I have a requirement to set the putApplName field to a specific value in the MQMD of outgoing messages from our system, and I was wondering if there was a way to set this value on all messages using JMS?
I read an earlier post stating that the CLIENTID value of the QCF in MQ JNDI would set it, but I have attempted to do that, and generate a .bindings to use (we are using Weblogic) but it hasn't worked.
Does anyone have any other thoughts on this?
Thanks in advance.... |
|
Back to top |
|
 |
RogerLacroix |
Posted: Wed Jul 04, 2007 1:58 pm Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
Hi,
The CLIENTID of QCF has nothing to do with the MQMD.putApplName.
First, download and read the WebSphere MQ Using Java manual.
Second, you are on the right track with JMSXAppID. Did you try
Code: |
myMsg.setStringProperty("JMSXAppID","mything"); |
But then again, it may be a read-only property - hence, check the manual.
Regards,
Roger Lacroix
Capitalware Inc. _________________ Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Jul 04, 2007 5:06 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
RogerLacroix wrote: |
Hi,
The CLIENTID of QCF has nothing to do with the MQMD.putApplName.
First, download and read the WebSphere MQ Using Java manual.
Second, you are on the right track with JMSXAppID. Did you try
Code: |
myMsg.setStringProperty("JMSXAppID","mything"); |
But then again, it may be a read-only property - hence, check the manual.
Regards,
Roger Lacroix
Capitalware Inc. |
Roger you're right it is a read only property. The only way to set something like the application name from JMS is to do it on the RFH header. The MQMD property will always say something like WebSphereMQ for Java (from memory so don't quote me on it).
Enjoy  _________________ MQ & Broker admin |
|
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
|
|
|
|