Author |
Message
|
SANSDHANS |
Posted: Mon Mar 21, 2016 3:36 am Post subject: IBM MQ/WMQ - JMS URI with mdReadEnabled/MQMDReadEnabled flag |
|
|
Newbie
Joined: 21 Mar 2016 Posts: 3
|
Hi,
In my Mule/Java application, I have JMS URI defined as below for a WMQ QUEUE.
Code: |
jms://PUBLISH_QUEUE |
I would like to pass some properties to the queue to receive Header values like ApplicationIdentityData @ MQMD and few more on M
I tried with following URI
Code: |
jms://PUBLISH_QUEUE?targetClient=1&mdReadEnabled=true&MQMDReadEnabled=true |
But, no change and I am not receiving header values.
Any help is highly appreciated. |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Mar 21, 2016 4:19 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
|
Back to top |
|
 |
SANSDHANS |
Posted: Mon Mar 21, 2016 4:45 am Post subject: |
|
|
Newbie
Joined: 21 Mar 2016 Posts: 3
|
|
Back to top |
|
 |
mqjeff |
Posted: Mon Mar 21, 2016 4:52 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
JMS generally doesn't allow for full access to all of the fields of the MQMD or the MQRFH2.
If Mule provides specific methods to do that, you may need to make sure the object you're working with is a Mule message object and not a standard JMS object.
Whether that's a simple cast or something more complicated depends entirely on Mule. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Mar 21, 2016 4:59 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Apart from the link I gave you, I don't know that you can access any other properties...
May be using the MQMDReadEnabled flag you can access stuff like JMS_IBM_MQMD_ ?? but there is no guarantee that this will be accessible in the next release, as it is not officially documented... _________________ MQ & Broker admin |
|
Back to top |
|
 |
SANSDHANS |
Posted: Mon Mar 21, 2016 7:24 am Post subject: |
|
|
Newbie
Joined: 21 Mar 2016 Posts: 3
|
Thanks everyone for reply.
Will dig around. |
|
Back to top |
|
 |
|