|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Writing to Application identity data with XMS |
« View previous topic :: View next topic » |
Author |
Message
|
4integration |
Posted: Wed Jun 23, 2010 12:47 am Post subject: Writing to Application identity data with XMS |
|
|
 Disciple
Joined: 04 Sep 2006 Posts: 197 Location: Gothenburg, Sweden
|
Hello,
According to the documentation it should be possible to set MQMD.ApplIdentityData via
myTextMsg.SetStringProperty("JMSXAppID","Mytest");
But it seems to be ignored.
Why is that?
Using
WMQ Server 7.0.1.1
WMQ Client 7.0.1.2
XMS 2.0.0.2 _________________ Best regards
4 Integration |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Jun 23, 2010 11:12 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Because in JMS this is a read only property as stated by the manual.
You would need to use an RFH header property for a custom information...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
mvic |
Posted: Wed Jun 23, 2010 5:55 pm Post subject: Re: Writing to Application identity data with XMS |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
4integration wrote: |
it should be possible to set MQMD.ApplIdentityData via
myTextMsg.SetStringProperty("JMSXAppID","Mytest");
But it seems to be ignored. |
Why not write in C and call the MQI if you want this level of control? You'll get a quicker app, but you'll need to write (say it quietly) in the C language. |
|
Back to top |
|
 |
4integration |
Posted: Sun Jun 27, 2010 10:33 pm Post subject: |
|
|
 Disciple
Joined: 04 Sep 2006 Posts: 197 Location: Gothenburg, Sweden
|
After som more testing/reading I'd missed some
Code: |
// Has to be set before creating the producer
dest.SetBooleanProperty(XMSC.WMQ_MQMD_WRITE_ENABLED, true);
dest.SetIntProperty(XMSC.WMQ_MQMD_MESSAGE_CONTEXT, XMSC.WMQ_MDCTX_SET_ALL_CONTEXT);
prod = GetProducer(session, dest); |
Then applications can set e.g.:
Code: |
msg.SetStringProperty(XMSC.JMS_IBM_MQMD_APPLIDENTITYDATA, "MyTest");
msg.SetStringProperty(XMSC.JMS_IBM_MQMD_PUTAPPLNAME, "MyApp"); |
_________________ Best regards
4 Integration |
|
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
|
|
|
|