i am trying to subscribe to a nats streaming server in a singleton. the
idea is that it will listen for any messages from the queue while the
server is running.
it looks like it might work ok in production but during development if i
make any code change then it blows up with
org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads
The web application [api] appears to have started a thread named
[jnats-streaming ack timeout thread] but has failed to stop it. This is
very likely to create a memory leak.
i have created a gist
https://gist.github.com/chongma/2a3ab451f2aeabc98340a9b897394cfe
is there any way to make sure the thread gets shut down when the web
application is stopped?
- ejb singleton not closing thread Matthew Broadhead
-