|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
JMS using CorrelationID and native MQSeries application |
« View previous topic :: View next topic » |
Author |
Message
|
fdutreuil |
Posted: Tue Nov 26, 2002 4:38 pm Post subject: JMS using CorrelationID and native MQSeries application |
|
|
Newbie
Joined: 26 Nov 2002 Posts: 1 Location: Paris, France
|
Hi,
I have a JMS Client sending an MQSeries message to a native MQSeries program. The property TargetClient is set to MQ so that the MQRFH2 header is not sent. Before sending the message, I set the CorrelationId to some string "abcd" for example. Some processing occur on the MQSeries side and a message is put in an output queue.
My problem is that I cannot simply get the reply message using a selectorHeader and the correlationID. In the reply message retrieved by the JMS application, the correlation ID is in hexadecimal format instead of a string format. To get the message, I have to convert into hexadecimal my correlationId and to create the selectorHeader with this hexadecimal value.
2 questions :
- I was thinking that by specifying TargetClient to MQ for the receiving queue, JMS will do the necessary conversions to access correctly the Correlation ID from the MQMD, ie will convert my JMS String CorrelationID to the appropriate Hexa correlationID as being found into the MQMD. Is it a bug or is the design not supporting it?
- If I have MQSI, would you recommend that MQSI takes the message from JMS (with the MQRFH2 header), create another message without the MQRFH2 header for the native MQSeries application, get the return message from the native MQSeries application (without the MQRFH2 header) and finally create another message including the MQRFH2 header to be sent to JMS?
Thank you in advance
Frederic |
|
Back to top |
|
 |
amigupta1978 |
Posted: Wed Nov 27, 2002 1:42 am Post subject: |
|
|
Centurion
Joined: 22 Jan 2002 Posts: 132 Location: India
|
Hi,
MQseries stores correlationID in form of hexadecimal bytes. So best way to set the correclation id from string (in java) is to use String.getBytes() function so try setting ur msgid in JMS in byte form only. Maybe that helps.
Regards,
Amit _________________ IBM certified MQseries Specialist
IBM certified WMQI Specialist |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|