Using SSL with Non-Blocking IO (O'ReillyNet)
Nuno Santos
shows how to use SSL with the Java 1.4 non-blocking IO package.
"
Previously, the IO support in Java was limited to stream-based, blocking IO, which although elegant and simple, is significantly impaired in terms of scalability, requiring one active thread for each network connection. Java NIO introduced support for IO multiplexing and non-blocking IO, which are necessary tools to build highly scalable applications."