For thread pool i suggest you to try 

 pool = Executors.newCachedThreadPool();
 or
 pool = Executors.newFixedThreadPool(poolSize);


You have to implement class Handler implements Runnable 

and 
serverSocket = new ServerSocket(port);
pool.execute(new Handler(serverSocket.accept()));

For network communication i also suggest you Jgroups 2

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3874855#3874855

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3874855


-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to