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 » Reconnection after exception MQRC_CONNECTION_BROKEN

Post new topic  Reply to topic
 Reconnection after exception MQRC_CONNECTION_BROKEN « View previous topic :: View next topic » 
Author Message
infometis
PostPosted: Mon Jan 27, 2003 2:13 am    Post subject: Reconnection after exception MQRC_CONNECTION_BROKEN Reply with quote

Newbie

Joined: 27 Jan 2003
Posts: 4
Location: Zürich, Switzerland

Hi,

We have a MQ JSM version 5.1 running under windows 2000, we are a little new to this stuff but we would like
to know is it possible to reconnect to a queue after a network outrage (when we are reading the message from the queue).

Should we catch the MQRC_CONNECTION_BROKEN exception, sleep and reopen and reconnect to the queue - we are doing this
at the moment with the heartbeat of 10 seconds (we are opening the queue in exclusive only) and it seems to work
but is there a better solution?

We would like to connect to the queue using exclusive mode - to guarantee that only one program can read from the queue.

We have used the old trail and error method and when we open the queue exclusive with a heartbeat of 0 then the program
gets a network outrage and ends - we cannot read message from the queue with out restarting the whole thing (even when
we push new messages in the queue) - is there a way to avoid this?

Thanks
_________________
Richie
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 » Reconnection after exception MQRC_CONNECTION_BROKEN
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.