I’m trying to embed Openfire (3.6.4) for running it in unit tests. The API for this seems to be quite straightforward:
XMPPServer server = new XMPPServer();
… do your thing …
The server seems to stop OK but the process does not finish. I see a thread names “pool-1-thread-1” still waiting. I’ve stripped down the example to basically the lines above, i.e. I’m sure that my code doesn’t spawn any threads itself.