Hello,
I've been writing code that automatically reconnects by handling the JMS
ExceptionListener.

I've realised that it's possible with the C++ API to automatically
reconnect.

Looking through some of the Java docs there's an implication that this
should work - I've seen a "retries" option and a "connectiondelay" option,
but when I've tried to use these I get NamingException.

If they do work could I have an example URL - with correct parentheses (if
I've got anything wrong it's likely to be that).

I'm just using a single broker at the moment I just want to reestablish
connection automatically when the broker comes back.

Also if auto reconnect works what happens about sessions. In my code with
the ExceptionListener I need to re-establish a connection from scratch so I
need to recreate the sessions too, with auto reconnect does something clever
happen in the internals of Connection Impl

Cheers.
Frase




--
View this message in context: 
http://apache-qpid-users.2158936.n2.nabble.com/Does-JMS-reconnection-work-with-C-broker-tp6626241p6626241.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to