Index: code/modules/grizzly/src/main/java/com/sun/grizzly/nio/transport/TCPNIOServerConnection.java =================================================================== --- code/modules/grizzly/src/main/java/com/sun/grizzly/nio/transport/TCPNIOServerConnection.java (revision 4325) +++ code/modules/grizzly/src/main/java/com/sun/grizzly/nio/transport/TCPNIOServerConnection.java Wed Mar 31 11:59:41 CDT 2010 @@ -170,8 +170,23 @@ ? defaultCompletionHandler : new RegisterAcceptedChannelCompletionHandler(listener); + if(processor != null) + { + connection.setProcessor(processor); + } + else + { connection.setProcessor(transport.getProcessor()); + } + + if(processorSelector != null) + { + connection.setProcessorSelector(processorSelector); + } + else + { connection.setProcessorSelector(transport.getProcessorSelector()); + } tcpNIOTransport.getNioChannelDistributor().registerChannelAsync( acceptedChannel, SelectionKey.OP_READ, connection, handler);