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 using CorrelationID and native MQSeries application

Post new topic  Reply to topic
 JMS using CorrelationID and native MQSeries application « View previous topic :: View next topic » 
Author Message
fdutreuil
PostPosted: Tue Nov 26, 2002 4:38 pm    Post subject: JMS using CorrelationID and native MQSeries application Reply with quote

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
View user's profile Send private message Visit poster's website
amigupta1978
PostPosted: Wed Nov 27, 2002 1:42 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » JMS using CorrelationID and native MQSeries application
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.