|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Mapping MQMD fields to JMS |
« View previous topic :: View next topic » |
Author |
Message
|
aks |
Posted: Tue Jun 08, 2004 2:39 pm Post subject: Mapping MQMD fields to JMS |
|
|
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 |
|
 |
JLRowe |
Posted: Wed Jun 09, 2004 12:48 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
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
|
|
|
|