You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by Joao <jo...@wireless-networks.com> on 2006/07/07 23:38:58 UTC
Design question(Connector)
Sorry for this new buy question...
I have a server(kinda proxy) that connects to two connection upstream .
In fact, it will connect to the second socket only if the first
socket goes down.
The second connection/socket is more of a failover option.
Is a future like this already implemented in mina?
Is there an easy way to implement it using the present connector
infrastructure?
Thanks in advance,
Joao,
Re: Design question(Connector)
Posted by peter royal <pr...@apache.org>.
On Jul 7, 2006, at 5:38 PM, Joao wrote:
> Sorry for this new buy question...
> I have a server(kinda proxy) that connects to two connection
> upstream .
> In fact, it will connect to the second socket only if the first
> socket goes down.
> The second connection/socket is more of a failover option.
>
>
> Is a future like this already implemented in mina?
>
> Is there an easy way to implement it using the present connector
> infrastructure?
interesting... you want to fail-over when writes fail?
my initial suggestion is to just set a Callback on the WriteFuture
you get after IoSession.write() that does the fail-over logic when
the first server goes down. That's the best existing infrastructure
that we've got for achieving this, based on my understanding of what
you want to do..
-pete
--
proyal@apache.org - http://fotap.org/~osi