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 » JMS message

Post new topic  Reply to topic
 JMS message « View previous topic :: View next topic » 
Author Message
scravr
PostPosted: Tue Aug 02, 2011 8:05 am    Post subject: JMS message Reply with quote

Partisan

Joined: 03 Apr 2003
Posts: 391
Location: NY NY USA 10021

and HI to ALL,

What will be the safe and best way to findout if a msg is JMS?

On Broker V7 can I check for:


If ((InRootRef.MQMD.Format = 'MQHRF2') and LASTMOVE(MqrfhRef) and (InRootRef.MQRFH2.mcd.Msd= 'jms_text')) then
-- this is a JMS msg
else
--this is not JMS msg
end if;


Dose JMS msg must always have mcd.Msd= 'jms_text'?

Thanks,
Mos
Back to top
View user's profile Send private message Send e-mail MSN Messenger
scravr
PostPosted: Tue Aug 02, 2011 9:02 am    Post subject: Reply with quote

Partisan

Joined: 03 Apr 2003
Posts: 391
Location: NY NY USA 10021

One more note:

Message arrives to flow via MQInput on BLOB parser. Then passed to ESQL Compute node.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
fjb_saper
PostPosted: Tue Aug 02, 2011 10:12 am    Post subject: Reply with quote

Grand High Poobah

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

There is no real concrete way to identify a "JMS" message, as the message can also be created without the RFH header.

One indication would be in the wording of the application (which is fixed for JMS), but that could be set/used by a C or java base program just as well...

So unless you have a clear way of identifying the message due to its content or specific properties, there is no way to be 100% sure... ever...

As a general rule ... why should you care?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
scravr
PostPosted: Tue Aug 02, 2011 10:40 am    Post subject: Reply with quote

Partisan

Joined: 03 Apr 2003
Posts: 391
Location: NY NY USA 10021

specific validation + processing need to be done for XML, NonXML, JMS, etc. Then building output accordingly.

Any MQRFH2 element specifies JMS?
Back to top
View user's profile Send private message Send e-mail MSN Messenger
fjb_saper
PostPosted: Tue Aug 02, 2011 10:44 am    Post subject: Reply with quote

Grand High Poobah

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

scravr wrote:
specific validation + processing need to be done for XML, NonXML, JMS, etc. Then building output accordingly.

Any MQRFH2 element specifies JMS?

No, you could build an RFH2 outside of JMS...
The message could not have any RFH header and be created by JMS
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Tue Aug 02, 2011 10:45 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

scravr wrote:
specific validation + processing need to be done for XML, NonXML, JMS, etc.


At the risk of being obvious, you can send XML and non-XML via JMS. So surely you'd be better off examining the message & processing by content (or at least format)

scravr wrote:
Any MQRFH2 element specifies JMS?


As my most worthy associate pointed out, a JMS message doesn't have to have an RFH2 header at all. So not finding a given element in a not present RFH2 doesn't prove it's not JMS.

And how it's been sent (JMS, XMS, TCP/IP) shouldn't affect how you validate & process the payload.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Aug 02, 2011 10:45 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

No.

You should *not* need "special validation + processing" for a "JMS" message.

You *might* need special validation and processing for a *business level* message type - that would be indicated by JMS properties of some kind - but if you are in any way trying to do something different with a given message just because it was sent by JMS rather than the plain MQ API, then you're doing it wrong.

If you need to identify particular messages, that happen to be sent by JMS, then you need to specifically *mark* those messages using JMS properties, and use that mark to identify the messages.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Aug 02, 2011 10:47 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

fjb_saper wrote:
scravr wrote:
specific validation + processing need to be done for XML, NonXML, JMS, etc. Then building output accordingly.

Any MQRFH2 element specifies JMS?

No, you could build an RFH2 outside of JMS...




Pre v7 the RFH2 was a popular place to put metadata for all applications

fjb_saper wrote:
The message could not have any RFH header and be created by JMS



_________________
Honesty is the best policy.
Insanity is the best defence.
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 » JMS message
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.