JBoss Community

MinaTaskServer - why to start in a thread?

created by Odelya Holiday in jBPM - View the full discussion

Hi!

 

I saw in the documentation to start MinaTaskServer in a thread:

 

 

server = new MinaTaskServer(taskService);
 
  Thread thread = new Thread(server);
  thread.start();
 

 

 

Why not simply

 

 

server = new MinaTaskServer(taskService);
server.start();
 

Reply to this message by going to Community

Start a new discussion in jBPM at Community