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 » IBM MQ Java / JMS » Mapping JMS fields onto MQSeries

Post new topic  Reply to topic
 Mapping JMS fields onto MQSeries « View previous topic :: View next topic » 
Author Message
manrubiano
PostPosted: Thu Jul 19, 2001 7:42 pm    Post subject: Reply with quote

Newbie

Joined: 18 Jul 2001
Posts: 2
Location: Asutralia

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) ?

Thanks...
Back to top
View user's profile Send private message
kolban
PostPosted: Fri Jul 20, 2001 4:31 am    Post subject: Reply with quote

Grand Master

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

MQSeries.net Forum Index » IBM MQ Java / JMS » Mapping JMS fields onto MQSeries
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.