This content has been marked as final.
Show 5 replies
-
1. Re: Reconnect after a lost connection
timfox Dec 3, 2009 7:28 PM (in response to droberts18)This depends what messaging system you are talking about.
"JBoss" has 3: JBoss MQ, JBoss Messaging and HornetQ.
HornetQ certainly has auto reconnect functionality
IIRC JBoss Messaging and JBoss MQ do not. -
2. Re: Reconnect after a lost connection
droberts18 Dec 3, 2009 8:03 PM (in response to droberts18)I am using the JBoss Messaging that is bundled with the JBoss 4.3 release. Version 1.4 according to the release notes.
-
3. Re: Reconnect after a lost connection
gaohoward Dec 3, 2009 9:33 PM (in response to droberts18)With JBoss Messaging, you have to do yourself by registering a connection listener.
-
4. Re: Reconnect after a lost connection
goldenhawk Dec 6, 2009 11:29 AM (in response to droberts18)"gaohoward" wrote:
With JBoss Messaging, you have to do yourself by registering a connection listener.
Please correct me if I'm wrong, but would this mean if I have a 'reset' connection, I could have a listener keep track & do a reconnect whenever this happens? And would you be so kind as to point me to the right direction on how to get a listener up? :) -
5. Re: Reconnect after a lost connection
gaohoward Dec 7, 2009 12:10 AM (in response to droberts18)Hi,
Have a look at JMS api doc, the Connection has a method setExceptionListener(). I think you need to implement the ExceptionListener. It should be straightforward.
Howard