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 » JMSXAppID

Post new topic  Reply to topic
 JMSXAppID « View previous topic :: View next topic » 
Author Message
muruga
PostPosted: Wed Jul 28, 2004 7:49 pm    Post subject: JMSXAppID Reply with quote

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
View user's profile Send private message
fridlyos
PostPosted: Thu Aug 19, 2004 9:44 am    Post subject: JMSXAppID Reply with quote

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
View user's profile Send private message
RogerLacroix
PostPosted: Thu Aug 19, 2004 12:22 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
fridlyos
PostPosted: Thu Aug 19, 2004 1:33 pm    Post subject: JMSXAppID Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Thu Aug 19, 2004 2:51 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
RogerLacroix
PostPosted: Thu Aug 19, 2004 8:14 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
fridlyos
PostPosted: Fri Aug 20, 2004 6:17 am    Post subject: JMSXAppID Reply with quote

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
View user's profile Send private message
RogerLacroix
PostPosted: Fri Aug 20, 2004 10:25 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
aks
PostPosted: Sun Sep 12, 2004 5:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
RogerLacroix
PostPosted: Wed Sep 15, 2004 10:00 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
aks
PostPosted: Wed Sep 15, 2004 2:32 pm    Post subject: Reply with quote

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
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 » JMSXAppID
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.