Author |
Message
|
duder |
Posted: Mon Nov 18, 2002 8:59 am Post subject: JMS Properties mapped to a non JMS Client |
|
|
Newbie
Joined: 18 Nov 2002 Posts: 7
|
I'm trying to send a JMS message with user defined properties to MQ which will be read by a non JMS client. I'm able to set user defined properties for JMS to JMS. I've also set the target client to JMS, but that doesn't seem to help. Anyone have any ideas?
Also, can you see the user defined properties in the MQSeries Explorer?
Thanks! |
|
Back to top |
|
 |
bower5932 |
Posted: Mon Nov 18, 2002 11:08 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
If you are setting the user properties, you can use the explorer to look at the Data associated with the message. The Format should be MQHRF2 which shows up as RFH in the front of the message. It just won't be formatted (which is probably what you wanted). You can also use the amqsbcg program to browse the queue and look at the message. |
|
Back to top |
|
 |
duder |
Posted: Mon Nov 18, 2002 12:55 pm Post subject: |
|
|
Newbie
Joined: 18 Nov 2002 Posts: 7
|
I'm able to see my user defined properties if I specify a JMS client. I'm interested in see my user defined properties for a non JMS client. I have a VB app in which I would like to see properties set by my JMS application.
Thanks! |
|
Back to top |
|
 |
kingdon |
Posted: Wed Nov 20, 2002 3:51 am Post subject: |
|
|
Acolyte
Joined: 14 Jan 2002 Posts: 63 Location: UK
|
The targetClient property is badly named, we should have called it something like 'useRFH2'. If you set targetClient to non-JMS the RFH2 is not sent, so things that are normally carried in the RFH2 will be lost - the user properties are the most obvious example. If you want to preserve the user properties then keep the targetClient set to JMS compliant. You'll then have to write code in your receiving application to parse the RFH2 and extract the user properties. Details on the format are in the "Using Java" manual.
Regards,
James. |
|
Back to top |
|
 |
duder |
Posted: Wed Nov 20, 2002 5:17 am Post subject: |
|
|
Newbie
Joined: 18 Nov 2002 Posts: 7
|
James,
Thanks for the information. This is the answer I was looking for. I'll look into the manual. |
|
Back to top |
|
 |
|