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 » reconnect to MQ server

Post new topic  Reply to topic
 reconnect to MQ server « View previous topic :: View next topic » 
Author Message
datspats
PostPosted: Sun May 27, 2007 11:18 pm    Post subject: reconnect to MQ server Reply with quote

Voyager

Joined: 12 Apr 2007
Posts: 80
Location: Mumbai

We are facing an issue due to time-out closure of a connection. Our MQ server is set-up in such a way that if there is no traffic for a specific period of time, the MQ closes the client connection.


Our Java code gets a 2009 MQ Error when it tries to upload a message using a connection object which is already killed by MQ server due to time-out. Is there an option to re-connect to the server without actually creating another connection object for e.g. something as simple as .reconnect(). We would like to avoid all the hassles of building up the connection string again for re-connecting.

regards
Back to top
View user's profile Send private message Yahoo Messenger
marcin.kasinski
PostPosted: Sun May 27, 2007 11:38 pm    Post subject: Re: reconnect to MQ server Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

I think there is no other way, no reconnect method or something similar.
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
fjb_saper
PostPosted: Mon May 28, 2007 8:15 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

MQ does not kill the connection, unless it was already broken.
You may want to check your firewall timeout and tcp timeout information and other causes....

Make sure your other timeouts are > heartbeat...

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
PeterPotkay
PostPosted: Mon May 28, 2007 5:04 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

fjb_saper wrote:
MQ does not kill the connection, unless it was already broken.

If the MQ Admin set the ClientIdle parameter in the Channels Stanza of the qm.ini file, MQ would be kiling otherwise healthy client connections after a period of inactivity.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue May 29, 2007 1:16 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

PeterPotkay wrote:
fjb_saper wrote:
MQ does not kill the connection, unless it was already broken.

If the MQ Admin set the ClientIdle parameter in the Channels Stanza of the qm.ini file, MQ would be kiling otherwise healthy client connections after a period of inactivity.


Thanks for the update Peter...
Guess I don't use as much of the Stanzas as I possibly should...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » reconnect to MQ server
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.