nio package won't dispense you from creating multiple connections, but from creating multiple threads. You could even have a single
thread ready for reading/writing to multiple connections, and waiting for the the pending connections to a ServerSocketChannel to be
accepted; all of these as indicated by a Selector.
Please read the
NIO examples provided in the SDK Documentation.
The book The JDK1.4 Tutorial by Gregory M. Travis has also a chapter about NIO in which a server example appears.
[ March 30, 2004: Message edited by: Jose Botella ]