Tricks and Tips with NIO

This JavaOne 2007 technical session, Tricks and Tips with NIO – Using the Grizzly Framework, provided some general advice when working with the NIO classes. The most important piece of advice was to use the Grizzly Framework. The Grizzly project hides the programming complexity of using NIO so that developers can focus on implementing large scale servers. Grizzly is in use in the GlassFish Application Server.

For those not working with the Grizzly Framework, Jean-Francois Arcand of Sun gave a quick overview of NIO, or the new IO library introduced in Java 1.4. Jean-Francois reminded the audience that traditionally Java sockets are blocking but NIO channels can be either blocking or non-blocking. The talked described some very technical tricks and tips when working with NIO. The last tip and most important piece of advice was to use the Grizzly project when working with NIO.

Technorati Tags: , , , ,


Leave a Reply