Hi,

The number of retries has been configured to an arbitrary high number, my
application should not give up but just retry forever until stopped by the
user.

Let me explain futher, the problem can come in two flavors:

1) I call the createConnection() on the factory, but the connection cannot
be established. QPID starts its retry loop. The user tries to stop the
application, but I don't know how to stop QPID from looping (the
createConnection() hasn't yet returned so I can't even call close() ).

2) The connection can be established successfully, but it gets lost at some
point. QPID starts its retry loop in its own thread. When the user tries to
stop the application, I call stop() on the connection, but QPID doesn't
exit.

Do you have any idea?

Thanks
Marco


Phil Harvey-2 wrote
> Hi Marco,
> 
> It sounds like you haven't configured the number of retries in your
> connection URL.
> 
> The connection URL options are described here, along with some examples:
> http://qpid.apache.org/releases/qpid-0.22/programming/book/QpidJNDI.html
> 
> During a normal client application shutdown, note that you would normally
> call close() on your JMS Connection rather than relying on failover giving
> up (or did I misunderstand your point about shutdown?).
> 
> Phil
> 
> 
> 
> On 26 July 2013 09:21, pela <

> mpela.gatti@

> > wrote:
> 
>> Hello,
>>
>> Any idea? I can't stop the application cleanly if QPID keep retrying the
>> connection indefinitely (its connection thread remains alive).
>>
>> Thanks
>> Marco
>>
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://qpid.2158936.n2.nabble.com/Java-client-Cannot-stop-during-failover-tp7595882p7595930.html
>> Sent from the Apache Qpid users mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: 

> users-unsubscribe@.apache

>> For additional commands, e-mail: 

> users-help@.apache

>>
>>





--
View this message in context: 
http://qpid.2158936.n2.nabble.com/Java-client-Cannot-stop-during-failover-tp7595882p7595932.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org

Reply via email to