Hi, you are right, I just read to sloppy, and as most of the traffic on this list is about the Java part, I simply jumped to the wrong language in my mind. In my C++ implementations I use the same recommendation as from Ivan Pechorin, I set the cms::ExceptionListener and have built a very similar implementation to Spring's SingleConnectionFactory based on this one. Unfortunately there is no way before any interaction on the connection to know if it is still up, like there is also no way to knowing if a TCP connection is still good before actually trying to read/write to it (timeouts aside).
Best regards, Martin On Wed, Dec 14, 2011 at 6:27 PM, JRR <j...@cisco.com> wrote: > Hello Martin, > > Thank you for the suggestion to use Spring, but we're a C++ based client, > not Java. Hence usage of a Spring client isn't available to us. > > Or, is there more to Spring than I'm aware? > > Thanks, > > -=John > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/How-can-a-producer-consumer-tell-if-its-connection-is-still-good-tp4178865p4196036.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com.