It's a web application.
The db is not being erased - I can see the first taks in db.
How can I make sure that the task server is not started again?
When the server is up for the first time - I start the task server in the same thread as the application like this
server = new MinaTaskServer(taskService);
server.start();