public Connection create_connection(ProtocolProperties props) { ClientIIOPConnection delegate = new ClientIIOPConnection(); try { delegate.configure(configuration); } catch (ConfigurationException ce) { throw new org.omg.CORBA.INTERNAL("ConfigurationException: " + ce.getMessage()); } return new WIOPConnection(delegate, tag); }
public Listener create_listener(ProtocolProperties props, int stacksize, short base_priority) { IIOPListener delegate = new IIOPListener() { @Override protected Connection createServerConnection(Socket socket, boolean is_ssl) throws IOException { return new WIOPConnection(super.createServerConnection(socket, is_ssl), tag); } }; try { Iterator<ListenEndpoint> it = orb.getTransportManager().getListenEndpoints(Protocol.IIOP).iterator(); delegate.setListenEndpoint(it.next()); delegate.configure(configuration); } catch (ConfigurationException ce) { throw new org.omg.CORBA.INTERNAL("ConfigurationException: " + ce.getMessage()); } return new WIOPListener(delegate, tag); }