« Return to Thread: Lingo and service reconnects
Sorry it took me so long to reply to this one :)
On 12/21/06, Jerome Banks <jerome.banks@...> wrote:
>
> Hey Folks,
> We've got a simple Lingo configuration with running services with
> embedded brokers, and clients connected with the "tcp" connector. This
> creates a single socket between client and server which is re-used for all
> requests, which is what we want. If the server goes down, however, even for
> a few moments, (or more likely, we lose network connectivity), all our
> clients end up throwing IllegalStateException, complaining that "The Session
> is closed".
>
> Is there some way to get the client to reconnect? What would be
> appropriate call?
use failover:
> The "failover" connector seems to almost work, but
> doesn't handle the case where the server is down when the client is
> initializing,
If you want to startup when there is no JMS broker available, then you
need to initialize your Lingo proxies in a background thread. So maybe
you need to add an AOP facade to lazily create the Lingo proxies on
demand.
> as well as a few other cases.
Like what?
> My only other idea would be to add some Spring AOP interceptor, to check
> the state, and create a new Connection if it looks like it is closed.
This is pretty much exactly what failover: already does on Apache
ActiveMQ. Its pretty hard to do (recreating all destinations,
consumers, producers, sessions and replaying any in-transit messages
or acknowledgements or transactions) - which is why we added this
feature into ActiveMQ :)
--
James
-------
http://radio.weblogs.com/0112098/
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
« Return to Thread: Lingo and service reconnects
| Free Forum Powered by Nabble | Forum Help |