Hi,

 

            I need to write application that open socket connection to
server and send/receive multi requests/responses simultaneously.

            Instead of open few socket connections I want to use mina thread
model 

            IoConnector connector = new
NioSocketConnector(Runtime.getRuntime().availableProcessors() + 1,
Executors.newCachedThreadPool());

 

            I'm not sure how to use it :

            

            "Each SocketAcceptor or SocketConnector creates its own I/O
processor thread(s)" - do I need to handle the threads or just

            Call getSession whenever I need to send message ? 

            

Thanks

Shiran. 

Reply via email to