I have written a singleton service and deploying using HASingletonDeployer,type=Barrier. My Singleton service invokes a thread in start method. The problem I am facing is, it does not returns back control to HTTP server.
Please see attached file for sample code.
Thread in code is a continuous thread and we can not make an explicit call to Thread.sleep and return back control to HTTP Server.