ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » IBM MQ/WMQ - JMS URI with mdReadEnabled/MQMDReadEnabled flag

Post new topic  Reply to topic
 IBM MQ/WMQ - JMS URI with mdReadEnabled/MQMDReadEnabled flag « View previous topic :: View next topic » 
Author Message
SANSDHANS
PostPosted: Mon Mar 21, 2016 3:36 am    Post subject: IBM MQ/WMQ - JMS URI with mdReadEnabled/MQMDReadEnabled flag Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Mon Mar 21, 2016 4:19 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

you need to look at the properties like JMS_..., JMSX..., JMS_IBM_.... etc...
You can get an enumeration of the message properties and check them all, then see which ones you really want...
http://www.ibm.com/support/knowledgecenter/SSFKSJ_8.0.0/com.ibm.mq.dev.doc/q032060_.htm?lang=en

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
SANSDHANS
PostPosted: Mon Mar 21, 2016 4:45 am    Post subject: Reply with quote

Newbie

Joined: 21 Mar 2016
Posts: 3

Thanks.

I am trying to access few MQMD/MQRFH2 fields inside an mule application.

From Mule if I can set this flag in Queue object, they will be included for me to access.

Is there anyway, I can get all the MQMD/MQRFH2 fields in the JMS Header?


Ref:
http://stackoverflow.com/questions/36062059/mule-esb-wmq-connector-how-to-access-wmq-message-header-values
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Mar 21, 2016 4:52 am    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Mon Mar 21, 2016 4:59 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
SANSDHANS
PostPosted: Mon Mar 21, 2016 7:24 am    Post subject: Reply with quote

Newbie

Joined: 21 Mar 2016
Posts: 3

Thanks everyone for reply.

Will dig around.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » IBM MQ/WMQ - JMS URI with mdReadEnabled/MQMDReadEnabled flag
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.