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 » IBM MQ Java / JMS » How to detect JMS or non-JMS message producer

Post new topic  Reply to topic
 How to detect JMS or non-JMS message producer « View previous topic :: View next topic » 
Author Message
jkothamb
PostPosted: Sat Jul 24, 2004 2:35 pm    Post subject: How to detect JMS or non-JMS message producer Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Sat Jul 24, 2004 4:11 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
kman
PostPosted: Mon Jul 26, 2004 11:34 pm    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
PeterPotkay
PostPosted: Tue Jul 27, 2004 7:13 am    Post subject: Reply with quote

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
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 » IBM MQ Java / JMS » How to detect JMS or non-JMS message producer
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.