Posted: Wed Nov 04, 2009 2:27 am Post subject: WMQ 7.x JMS and MQRFH2
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?
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.
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