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 » Writing to Application identity data with XMS

Post new topic  Reply to topic
 Writing to Application identity data with XMS « View previous topic :: View next topic » 
Author Message
4integration
PostPosted: Wed Jun 23, 2010 12:47 am    Post subject: Writing to Application identity data with XMS Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Wed Jun 23, 2010 11:12 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
mvic
PostPosted: Wed Jun 23, 2010 5:55 pm    Post subject: Re: Writing to Application identity data with XMS Reply with quote

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
View user's profile Send private message
4integration
PostPosted: Sun Jun 27, 2010 10:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Writing to Application identity data with XMS
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.