3 Replies Latest reply on Mar 6, 2011 11:42 AM by Mauricio Salatino

    MinaTaskServer - why to start in a thread?

    Odelya Holiday Novice

      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();