private CorbaAcceptor addAcceptor( org.omg.CORBA.ORB orb, boolean isLazy,
String host, String type, int port ) {
com.sun.corba.ee.spi.orb.ORB theOrb = (com.sun.corba.ee.spi.orb.ORB) orb;
CorbaTransportManager ctm = theOrb.getTransportManager() ;
CorbaAcceptor acceptor ;
if (isLazy) {
acceptor = TransportDefault.makeLazyCorbaAcceptor(
theOrb, port, host, type );
} else {
acceptor = TransportDefault.makeStandardCorbaAcceptor(
theOrb, port, host, type ) ;
}
ctm.registerAcceptor( acceptor ) ;
return acceptor;
}