IoAcceptor acceptor;
if (ApplicationRegistry.getInstance().getConfiguration().getQpidNIO())
{
_logger.warn("Using Qpid Multithreaded IO Processing");
acceptor = new org.apache.mina.transport.socket.nio.MultiThreadSocketAcceptor(config.getProcessors(), new NewThreadExecutor());
}
else
{
_logger.warn("Using Mina IO Processing");
acceptor = new org.apache.mina.transport.socket.nio.SocketAcceptor(config.getProcessors(), new NewThreadExecutor());
}
SocketAcceptorConfig sconfig = (SocketAcceptorConfig) acceptor.getDefaultConfig();
SocketSessionConfig sc = (SocketSessionConfig) sconfig.getSessionConfig();