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 » Mapping MQMD fields to JMS

Post new topic  Reply to topic
 Mapping MQMD fields to JMS « View previous topic :: View next topic » 
Author Message
aks
PostPosted: Tue Jun 08, 2004 2:39 pm    Post subject: Mapping MQMD fields to JMS Reply with quote

Voyager

Joined: 19 Jul 2002
Posts: 84

I've seen a few posts asking how to set the ApplIdentityData field in a JMS message, but without anyone getting it to work.

I have an MQI java app that sets the com.ibm.mq.MQMessage applicationIdData field so that in WBIMB V5 I can use its value to determine where to send the message for further transformation/processing. One also has to set the MQPutMessageOptions.options field to MQC.MQPMO_SET_IDENTITY_CONTEXT to be able to pass the ApplIdentitydata field through MQSI as well.

I'm converting the app to JMS and I can't see anywhere in the MQ Using Java manual of how to do this. Can anyone please help?

I'm also finding that I need to access the MQC class to set other fields like

jmsMessage.setIntProperty("JMS_IBM_MsgType", MQC.MQMT_DATAGRAM);
jmsMessage.setIntProperty("JMS_IBM_Report_Pass_Msg_ID", MQC.MQRO_PASS_MSG_ID);
jmsMessage.setIntProperty("JMS_IBM_Report_Pass_Correl_ID", MQC.MQRO_PASS_CORREL_ID);

This reduces the portability of the application, but is it avoidable or a must when sending and receiving messages bewteen java apps and MQSI?

Thanks
Alan
Back to top
View user's profile Send private message
JLRowe
PostPosted: Wed Jun 09, 2004 12:48 am    Post subject: Reply with quote

Yatiri

Joined: 25 May 2002
Posts: 664
Location: South East London

It's not that talking to MQSI makes the JMS code unportable, it's the fact that you're using the ApplIdentitydata field in the MQMD.

You can pass this info as a property of the JMS message, JMS for MQ sticks this in the RFH2 header, which you can easily pick up with MQSI.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Mapping MQMD fields to JMS
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.