server = new EJServer( handler, port );
server.enableNonBlockingIO( nonBlockingIO );
server.enableCompression( compression );
server.enablePersistentConnections( persistent );
server.enableHttpPackaging( http );
AdapterFactory.registerAdapter( new CastorAdapter( BaseTest.class.getResource( "castor-mapping.xml" ) ) );
server.start();
}