I have noticed that in my program, even when MINA is not able to connect to
remote peer, the program does not exit. It appears that there are some open
resources which are required to be closed explicitly. The code is at the end
of this email. The program prints "false", as no server is running, but
after that does not exits. Any idea which resources are still open? I have
tried this with both Java 5 and Java 6 and behavior is the same.

Thanks,
Akbar.

--------------------------------- START --------------------------
    public static void main(String[] a_strArrayOfArguments)
    {
        ConnectFuture oConnectFuture = new SocketConnector().connect(new
InetSocketAddress("localhost", 1234), new IoHandlerAdapter());
        
        oConnectFuture.join();
        
        System.out.println("Result = " + oConnectFuture.isConnected());
    }
------------------------------- END
-----------------------------------------
-- 
View this message in context: 
http://www.nabble.com/Program-does-not-exit-possible-due-to-open-resources-tf3045115.html#a8464526
Sent from the mina dev mailing list archive at Nabble.com.

Reply via email to