mina-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lécharny <elecha...@gmail.com>
Subject Re: Re-conecting fails with NioSocketConnector
Date Fri, 11 Jan 2013 09:23:09 GMT
Le 1/11/13 9:06 AM, dinesh707 a écrit :
> ConnectFuture future = connector.connect(address);
> future.addListener(new IoFutureListener<ConnectFuture>() {
>     @Override
>     ublic void operationComplete(ConnectFuture future) {
>     try
>     {
>         if (future.isConnected()) 
>
> when I connect using the following code to a server it works fine and
> isConnected returns me TRUE. But when server crash and comes up I try it
> again. Then its not working. Then I need to restart the client as well. Any
> idea why?
If you have lost the connection (which is always the case when the
server has crashed :), the associated future will obviously be invalid.
You have to initiate a new connection then.



-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com 


Mime
View raw message