Posted: Tue Aug 27, 2002 7:28 am Post subject: JMS and MQINQ - doable?
Newbie
Joined: 27 Aug 2002 Posts: 6
Has anyone found out whether or not the MQINQ call can be made via JMS? Otherwise, does the getTransacted() method on the Session object actually connect to the qmgr to determine if the session is in transaction mode? We have built an app where we store our JMS sessions in a pool. We would like to find the cheapest way to monitor their MQ connections. In other words, is there some way using JMS to see if the connection is still alive without actually sending a message to a queue? _________________ Thanx,
Joined: 29 Mar 2002 Posts: 12 Location: Vancouver, Canada
we do it a little differently....we don't check before we send....We just send and if we get a JMSException (make sure its not MessageFormatException or InvalidDestinationException), we just ditch this session and try to create a new session and retry(send) one more time...
This is better because there is no unnecessary overhead before each call...and the session is recreated only if the connection goes bad..
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