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 » WMQ 7.x JMS and MQRFH2

Post new topic  Reply to topic
 WMQ 7.x JMS and MQRFH2 « View previous topic :: View next topic » 
Author Message
mathilda
PostPosted: Wed Nov 04, 2009 2:27 am    Post subject: WMQ 7.x JMS and MQRFH2 Reply with quote

Novice

Joined: 16 May 2007
Posts: 16
Location: Sofia, Bulgaria

Hi,
i have a simple JMS example to send message.
This example work for WMQ 6.x :
if i set ((MQQueue) myQueue).setTargetClient(JMSC.MQJMS_CLIENT_NONJMS_MQ); message in queue is MQSTR ( i send Text message)
if i set ((MQQueue) myQueue).setTargetClient(JMSC.MQJMS_CLIENT_JMS_COMPLIANT); message in queue is MQRFH2.
works great for me.
But i tested this example with WMQ 7 and result not that i expected.
With ((MQQueue) myQueue).setTargetClient(JMSC.MQJMS_CLIENT_JMS_COMPLIANT); message in queue is not MQRFH2.
I read lots of documents for difference between 6.x and 7.x.
I find only that i must change property of Queue "Property Control" to "Force MQRFH2".
From RFHUtil i send with success MQRFH2 message to queue.

Regards
_________________
On any given Sunday you're gonna win or you're gonna lose. The point is
- can you win or lose like a man?
Back to top
View user's profile Send private message
manicminer
PostPosted: Wed Nov 04, 2009 2:59 am    Post subject: Reply with quote

Disciple

Joined: 11 Jul 2007
Posts: 177

I'm guessing here but I expect that you will find that with MQ7 the properties are added as MQ properties rather than adding an RFH2 header to the message.

So if you browse it on 7 then you will not see an RFH2, you will see a bunch of message properties containing what used to be in the RFH2.

If you get the message with an MQ6 client I think that you will find it has an RFH header if you set JMS_COMPLIANT. Or if the message is transferred to an MQ6 queue manager then you will (or not) get an RFH2 depending on various settings.

I've not done any MQ work for far too long now but hopefully this will point you in the right direction. (or someone with more current knowledge will come along and correct me)

edit: one of the advantages of message properties is to allow nicer interaction between MQ7 clients with JMS, so they can both read and process message properties in a more natural way without the message data needing to have an RFH2 on the front of it (which the MQ client app needs to understand and parse). It makes for much easier JMS and non-JMS integration in an MQ7 environment.
_________________
Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
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 » WMQ 7.x JMS and MQRFH2
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.