Esempio n. 1
0
  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);
  }