I have a Java application running in the same machine as MQSeries. It is subscribed to a JMS queue, reads a Jms message, builds an MQMessage puts the original JMS message text body into the MQMessage and sends it to the MQSeries queue. It does work perfectly. However I have two questions:
1. How the mapping of the JMSMessageID (ie string) to the MQMessage.messageId (ie byte) is actually done?
2. How can I mantain an MqSeries connection open (ie to a QueueManager and a queue) ?
Joined: 22 May 2001 Posts: 1072 Location: Fort Worth, TX, USA
If the JMSMessageID string is 21 bytes or less, I would imagine that it is placed in the MQSeries MQMD.MessageId field. I believe (won't swear to it) that IBM's JMS implementation adds "ID:" to th begining of the MessageID.
The connection to the MQSeries queue manager is maintained within the JMS Session object. As long as the JMS Session object is in scope, the connection to the underlying MQSeries queue manager will be maintained.
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