activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <>
Subject Re: Is there a way to know if NMS is actually connected using Failover transport ?
Date Thu, 16 Jul 2009 13:22:00 GMT
On Thu, 2009-07-16 at 00:35 -0700, Michel Van Hoof wrote:
> Hi,
> I have a situation where a lot of our clients are out of our control and so
> is the network/internet.
> To counter this, we want to use the failover protocol which handles the
> whole thing for us (yay).. However, they also need to be sending us data and
> this is where the issue comes in:
> when using failover, the client will hang if it is not connected to the
> server. When the local user would reboot the machine, messages will/could be
> lost (not speaking of the threads just "hanging" there because we tryed to
> send something on a connection that was not really connected).
> So my question is, is there way to know if the failover connection is
> actually connected to the broker before trying to send a message ? At this
> point, it ALWAYS returns isStarted = true if a connection has been made at
> some point in time :s
> Thanks !

There currently is not a mechanism to detect if the Failover transport
is connected or not, there is an open Jira issue to add this sort of
thing in the future, and as always contributions are welcomed.


View raw message