|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to detect JMS or non-JMS message producer |
« View previous topic :: View next topic » |
Author |
Message
|
jkothamb |
Posted: Sat Jul 24, 2004 2:35 pm Post subject: How to detect JMS or non-JMS message producer |
|
|
Newbie
Joined: 14 Jun 2004 Posts: 4
|
Hi,
I have a JMS consumer that consumes messages send by JMS or non-JMS producers. Is it possible to detect from where the message originated from after consuming it? Reading the MQ JMS manual, it says that JMS_IBM_Format field will contain MQFMT_RFH2 value if the message is from a JMS producer otherwise it would be MQFMT_STRING or blank. But the problem I am facing is that this field appears blank even though message can from a JMS producer. I would appreciate any help on this matter.
Thanks,
Juzer. |
|
Back to top |
|
 |
fjb_saper |
Posted: Sat Jul 24, 2004 4:11 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Check out the using java manual and the mapping from RFH2 and MQMD.
You need to find a mapping that is populated from the RFH2 and that is not present on the MQMD. This is the attribute you can check to determine the type of the producer
Hope it helps some
F.J. |
|
Back to top |
|
 |
kman |
Posted: Mon Jul 26, 2004 11:34 pm Post subject: |
|
|
Partisan
Joined: 21 Jan 2003 Posts: 309 Location: Kuala Lumpur, Malaysia
|
Quote: |
WebSphere MQ messages are composed of three components:
1 The WebSphere MQ Message Descriptor (MQMD)
2 A WebSphere MQ MQRFH2 header
3 The message body.
The MQRFH2 is optional, and its inclusion in an outgoing message is governed by a flag in the JMS Destination class. You can set this flag using the WebSphere MQ JMS administration tool. Because the MQRFH2 carries JMS-specific information, always include it in the message when the sender knows that the receiving destination is a JMS application. |
|
|
Back to top |
|
 |
PeterPotkay |
Posted: Tue Jul 27, 2004 7:13 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Why do you care where it came from anyway? _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|