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 » General IBM MQ Support » Java Application Process Id

Post new topic  Reply to topic
 Java Application Process Id « View previous topic :: View next topic » 
Author Message
atheek
PostPosted: Thu Jan 03, 2008 10:31 pm    Post subject: Java Application Process Id Reply with quote

Partisan

Joined: 01 Jun 2006
Posts: 327
Location: Sydney

Hi all,

I have different java applications opening the same queue using the same server connection channel. When I did
dis qs(qname) type(handle) all,
it lists all the handles to the queue and the pid's listed are that of the amqrmppa process and channel that of the svrconn channel used. Using runmqsc, is there a way to figure out which java application(or for that matter any client application) has opened the queue using a particular instance of server connection channel??

TIA
Atheek
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Jan 04, 2008 5:08 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Dis Conn will show you some different information, including information about the application using the connection.

That may or may not be very useful - particularly with Java, as you won't necessarily see anything other than the path to the java binary (not your app).
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Sat Jan 05, 2008 3:18 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Hi,

I tell Java developers to set something appropriate in the putApplicationName. i.e.
Code:
MQPutMessageOptions pmo = new MQPutMessageOptions();
pmo.options = MQC.MQPMO_SET_IDENTITY_CONTEXT + MQC.MQPMO_FAIL_IF_QUIESCING;

 MQMessage sendmsg  = new MQMessage();
 sendmsg.feedback      = MQC.MQFB_NONE;
 sendmsg.messageType   = MQC.MQMT_REQUEST;
 sendmsg.messageId     = MQC.MQMI_NONE;
 sendmsg.correlationId = MQC.MQCI_NONE;
 sendmsg.persistence   = MQC.MQPER_PERSISTENT;
 sendmsg.replyToQueueName        = "replyQName";
 sendmsg.replyToQueueManagerName = "replyQMgr";
 sendmsg.format = MQC.MQFMT_STRING;

 /**
  * Set MQMD Context fields
  */
 sendmsg.putApplicationType = MQC.MQAT_JAVA;
 sendmsg.putApplicationName = "MyPgmThing";
 sendmsg.userId = myMQUserID;

 sendmsg.write("This is a test message.");

 _outQ.put(sendmsg, pmo);


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
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Java Application Process Id
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.