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 IndexIBM MQ Java / JMSReading MQRFH2 usr folder in MDB

Post new topicReply to topic
Reading MQRFH2 usr folder in MDB View previous topic :: View next topic
Author Message
amiivas
PostPosted: Tue Aug 09, 2016 8:25 pm Post subject: Reading MQRFH2 usr folder in MDB Reply with quote

Apprentice

Joined: 14 Oct 2007
Posts: 35
Location: India

I have an requirement where I need to read custom name value in the usr folder of MQRFH2 header in an incoming message to a MDB running on JBOSS EAP 6.4 server. The message when viewed through RFHUTIL shows the usr folder with name value data but when the message is received as jms_text, it is not present in any of the header variable.

I am creating the message with MQRFH2 using IBM Datapower so I cannot set setStringProperty() in the outgoing TextMessage of the message producer.

1. Is there a way we can read MQRFH2 usr folder values in MDB ?
2 .Any other place in header section of a message where I can put this custom values?
3. Datapower can set string property in the outgoing JMSTextMessage?
_________________
IBM WebSphere Certified Solution Developer
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Aug 10, 2016 3:44 am Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17166

http://www.ibm.com/support/knowledgecenter/en/SSFKSJ_8.0.0/com.ibm.mq.dev.doc/q022920_.htm
_________________
Read, Think, Try, Repeat
Back to top
View user's profile Send private message
amiivas
PostPosted: Wed Aug 10, 2016 10:02 am Post subject: Reply with quote

Apprentice

Joined: 14 Oct 2007
Posts: 35
Location: India

Quote:
http://www.ibm.com/support/knowledgecenter/en/SSFKSJ_8.0.0/com.ibm.mq.dev.doc/q022920_.htm


The article says we can get the property by getStringProperty but when I am trying to debug or get the usr.property during runtime, I am not getting the value. I tried both message.getStringProperty() and message.getPropertyNames() to see if it at all has those values.

Is there a specific requirement done at JBOSS/MDB/activation-config level to read usr folder in MQRFH2.

Thanks.
_________________
IBM WebSphere Certified Solution Developer
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Aug 10, 2016 3:29 pm Post subject: Reply with quote

Grand Poobah

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

amiivas wrote:
Quote:
http://www.ibm.com/support/knowledgecenter/en/SSFKSJ_8.0.0/com.ibm.mq.dev.doc/q022920_.htm


The article says we can get the property by getStringProperty but when I am trying to debug or get the usr.property during runtime, I am not getting the value. I tried both message.getStringProperty() and message.getPropertyNames() to see if it at all has those values.

Is there a specific requirement done at JBOSS/MDB/activation-config level to read usr folder in MQRFH2.

Thanks.

What is the name of the property your are setting?
What is the name of the property you are trying to read?

_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
amiivas
PostPosted: Sun Aug 14, 2016 3:47 pm Post subject: Reply with quote

Apprentice

Joined: 14 Oct 2007
Posts: 35
Location: India

The name of the property set is InterfaceName and the path of the property is MQMD.usr.InterfaceName.

I am trying to read
message.getStringProperty("InterfaceName");
I hv tried all other variant such as us.InterfaceName, interfaceName, etc and also debugged to find all property names in the message but it simply does not have any reference to the mqrfh2 or usr or the properties set in it.
_________________
IBM WebSphere Certified Solution Developer
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sun Aug 14, 2016 8:48 pm Post subject: Reply with quote

Grand Poobah

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

amiivas wrote:
The name of the property set is InterfaceName and the path of the property is MQMD.usr.InterfaceName.

I am trying to read
message.getStringProperty("InterfaceName");
I hv tried all other variant such as us.InterfaceName, interfaceName, etc and also debugged to find all property names in the message but it simply does not have any reference to the mqrfh2 or usr or the properties set in it.

Did you set the destination type to JMS when creating the message?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
amiivas
PostPosted: Thu Aug 18, 2016 3:57 pm Post subject: Reply with quote

Apprentice

Joined: 14 Oct 2007
Posts: 35
Location: India

That is the thing, I am creating message with MQRFH2 header in IBM Datapower using xslt by defining a MQMD and MQRFH2 xmls, serializing them and adding them as a header to outgoing request.

While reading the destinatiionType is set to javax.jms.Queue in the activiationconfig property.
_________________
IBM WebSphere Certified Solution Developer
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Aug 18, 2016 5:27 pm Post subject: Reply with quote

Grand Poobah

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

amiivas wrote:
The name of the property set is InterfaceName and the path of the property is MQMD.usr.InterfaceName.

I am trying to read
message.getStringProperty("InterfaceName");
I hv tried all other variant such as us.InterfaceName, interfaceName, etc and also debugged to find all property names in the message but it simply does not have any reference to the mqrfh2 or usr or the properties set in it.


Surely that must be a typo and you meant to say you are setting MQRFH2.usr.InterfaceName and not MQMD.usr.InterfaceName ??
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexIBM MQ Java / JMSReading MQRFH2 usr folder in MDB
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.