|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
SourceQueue from MQMD |
« View previous topic :: View next topic » |
Author |
Message
|
AgentSmith |
Posted: Sat Jan 17, 2004 11:14 pm Post subject: SourceQueue from MQMD |
|
|
 Novice
Joined: 19 Nov 2003 Posts: 19
|
Hello,
I have a Java Plugin node where I have to determine the Queue by which a message has entered the flow.
I tried to get the value from Root.MQMD.SourceQueue field, but this is returning an empty string.
In a debug session, I can see the MQInput node's queue name in MQMD.SourceQueue field. At run time this is blank.
I'm using:
Code: |
mbMessage.getRootElement().getFirstElementByPath("MQMD/SourceQueue").getValue(); |
Printing the contents of MQMD MbElement also shows an empty SourceQueue field though the debug window in control center displays the correct value.
Kindly tell me why this happens.
Also, can you show me any other way by which I can get the message's Source Queue name?
Any help would be appreciated. |
|
Back to top |
|
 |
kirani |
Posted: Thu Jan 22, 2004 11:38 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Try this,
Code: |
MbElement rootRef = messageAssembly.getMessage().getRootElement();
MbElement srcQueue = rootRef.getFirstElementByPath("/MQMD/SourceQueue");
queueName = (String) srcQueue.getValue();
|
_________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
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
|
|
|
|