public void open() throws Exception
    {
        if (server != null) {
            throw new IllegalStateException("Server already open.");
        }

        server = new ServerSocket(0);

        processingService = Executors.newCachedThreadPool();

        acceptThread = new Thread(acceptor);
        acceptThread.start();
    }
Start accepting socket connections.

The port on which socket connections are accepted is automatically allocated. Use {@link #getPort()} to obtain it.
xmppserver/src/test/java/org/jivesoftware/openfire/session/RemoteReceivingServerDummy.java