|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Java Application Process Id |
« View previous topic :: View next topic » |
Author |
Message
|
atheek |
Posted: Thu Jan 03, 2008 10:31 pm Post subject: Java Application Process Id |
|
|
 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 |
|
 |
jefflowrey |
Posted: Fri Jan 04, 2008 5:08 am Post subject: |
|
|
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 |
|
 |
RogerLacroix |
Posted: Sat Jan 05, 2008 3:18 pm Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
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
|
|
|
|