use of com.sun.corba.ee.spi.transport.TransportManager in project Payara by payara.
the class PEORBConfigurator method addAcceptor.
private Acceptor 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;
TransportManager ctm = theOrb.getTransportManager();
Acceptor acceptor;
if (isLazy) {
acceptor = TransportDefault.makeLazyCorbaAcceptor(theOrb, port, host, type);
} else {
acceptor = TransportDefault.makeStandardCorbaAcceptor(theOrb, port, host, type);
}
ctm.registerAcceptor(acceptor);
return acceptor;
}
Aggregations