Question : Java API - Retrieving transmission queue name

Hello All.

How do I get, from an MQQueue object, the name of the Transmission queue that the remote queue uses? I am assuming that this is possible as WSMQ explorer (which is eclipse based) shows it on the gui.

So far, I am using the attached code to get a MQQueue for a remote queue
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
int openOptions = MQC.MQOO_INQUIRE | MQC.MQOO_OUTPUT;
MQQueueManager qMgr; // define a queue manager object
 
MQEnvironment.hostname = "mqhost";
MQEnvironment.port = 1482;
MQEnvironment.properties.put(MQC.TRANSPORT_PROPERTY, MQC.TRANSPORT_MQSERIES);
MQEnvironment.channel = "Channel";
 
qMgr = new MQQueueManager("TEST");
MQQueue destQueue = qMgr.accessQueue("TQ.TEST", openOptions);

Answer : Java API - Retrieving transmission queue name

This page

http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.amqtan.doc/tqnp.htm

shows that the MQQueue object has a (readonly) TransmissionQueueName property that should be able to access
Random Solutions  
 
programming4us programming4us