Sun Java Solaris Communities My SDN Account Join SDN
 

JavaOne Online Technical Sessions

Pump Up Your Technical Knowledge
Listen and watch as industry luminaries bring you the latest on Java technologies
Begin Product Tab Sub Links Active Sub LinkJavaOne Technical Sessions JavaOne Hands-on Labs

Tricks and Tips with NIO, Using the Grizzly Framework
TS-2992


Presenter: Jean-Francois Arcand, Sun Microsystems, Inc.; Charles Hunt, Sun Microsystems Inc


Writing scalable high-volume traffic network server applications in the Java programming language has always been difficult. Before the advent of the Java New I/O (NIO) API, thread and buffer management issues made it impossible for a server to scale to thousands of users. But using NIO presents its own challenges in terms of program design and implementation. However, the Grizzly project has gained a lot of interest and adoption over the past two years, as a result of its performance and scalability as a general-purpose Java NIO Framework.

This session discusses some tricks and tips the speakers have learned in working on the Grizzly NIO Framework. They describe how to efficiently manage the byte buffer and how to properly handle SelectionKey, recommend some thread and byte buffer techniques, and talk about efficient NIO/SSL implementation. Finally they compare the Grizzly framework with other existing Java NIO API frameworks.

Watch The Session
You need to be a registered Sun Developer Network member to view this multimedia session. If you are a registered SDN member, please click on "Watch Multimedia" button to log-in to view the multimedia session. If you wish to join SDN, please click here.

 
 
FREE White Papers on Java SE, Java EE, cloud computing and database technologies.
New SDN Member Only Offers Every Month Discounts, FREE white papers and more!
Java University and JavaOne Training Sessions