Is there a way to give the threads that run in EJBs a name so they can be identified in the thread list in VisualVM? Threads call timer (@Timeout) and JMS (onMessage()) methods as well as http servlets methods.
Currently, the threads are given generic names such as:
http--0.0.0.0-443-3
or
EJB default - 9
I currently use :
Thread.currentThread().setName("Checker thread")
at the beginning of these methods, but I'm not sure it is always working in VisualVM so am looking for additional ideas.