The values returned from getQueueName() differ in WebSphere MQ V6 and WebSphere MQ V7.
MQQueue objects have a method getQueueName() which returns a URI representing the queue, with a format defined in the javadoc as:
a string in the form of a URI that can be used in the creation methods to reconstruct this object. The URI is in the form:
queue://qmgrName/queueName [name-value pairs]
Where: qmgrName is the name of the queue manager on which the queue resides. queueName is the name of the queue [name-value pairs] is an
optional list of name-value pairs that sets some Queue properties.
The URI returned is different in the V6 and V7 Java™ / JMS clients.
The V7 client will return a URI where the [name-value pairs] section includes all of the properties set on the queue.
The V6 client will return a URI where the [name-value pairs] section includes only a subset of the properties set on the queue. Those properties missing include the queue description and failIfQuiesce.