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 

Reply via email to