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 multiple MQRFH2 headers using MQJMS API

Post new topicReply to topic
Reading multiple MQRFH2 headers using MQJMS API View previous topic :: View next topic
Author Message
abhay09
PostPosted: Thu Jun 15, 2017 8:01 am Post subject: Reading multiple MQRFH2 headers using MQJMS API Reply with quote

Acolyte

Joined: 31 May 2016
Posts: 60

Hi Guys,

I have a system which uses MQJMS API to connect to MQ Queues.
Now, I came along a message that has multiple RF2 headers.
Details:

2 Rfh2 headers in message containing <jms> folder in each message.
Now, how can I read both rfh2 headers using MQJMS API.

Consumer.receive gives one jms folder details only.


Please guide.

Thanks!
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Jun 15, 2017 11:09 am Post subject: Re: Reading multiple MQRFH2 headers using MQJMS API Reply with quote

Grand Poobah

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

abhay09 wrote:
Hi Guys,

I have a system which uses MQJMS API to connect to MQ Queues.
Now, I came along a message that has multiple RF2 headers.
Details:

2 Rfh2 headers in message containing <jms> folder in each message.
Now, how can I read both rfh2 headers using MQJMS API.

Consumer.receive gives one jms folder details only.


Please guide.

Thanks!


While multiple RFH headers is a legitimate construct (see header chaining) the question remains as to why multiple RFH headers were built instead of consolidating the properties in a single RFH header...

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
abhay09
PostPosted: Thu Jun 15, 2017 9:17 pm Post subject: Re: Reading multiple MQRFH2 headers using MQJMS API Reply with quote

Acolyte

Joined: 31 May 2016
Posts: 60

fjb_saper wrote:
abhay09 wrote:
Hi Guys,

I have a system which uses MQJMS API to connect to MQ Queues.
Now, I came along a message that has multiple RF2 headers.
Details:

2 Rfh2 headers in message containing <jms> folder in each message.
Now, how can I read both rfh2 headers using MQJMS API.

Consumer.receive gives one jms folder details only.


Please guide.

Thanks!


While multiple RFH headers is a legitimate construct (see header chaining) the question remains as to why multiple RFH headers were built instead of consolidating the properties in a single RFH header...

Have fun



Actually, my system is accessing a client queue and any message can be there, be it string message, single rf2 header message or multiple rf2 headers message.

My system is not able to read multiple rf2 headers using mqjms api. Please suggest any way.?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Jun 16, 2017 4:52 am Post subject: Re: Reading multiple MQRFH2 headers using MQJMS API Reply with quote

Grand Poobah

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

fjb_saper wrote:

While multiple RFH headers is a legitimate construct (see header chaining) the question remains as to why multiple RFH headers were built instead of consolidating the properties in a single RFH header...

Have fun

So did you look into header chaining or request the reason why multiple RFH headers are present instead of a single consolidated one?
_________________
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 multiple MQRFH2 headers using MQJMS API
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.