9 Replies Latest reply on Sep 2, 2011 12:31 PM by a.kushunin

    Concern regarding running  JMSTaskServer as a thread from the EJB

    sharyak

      Hello,

       

      I am using JMS Task Sever. I can see that JMSTaskServer implementes Runnable. I am using process engine in the J2EE enviroment.

      As far as I understand, I need to write code like the one below. However, in EJB threads are not allowed. What should I do ?

       

      JMSTaskServer taskServer = new JMSTaskServer(jmsTaskServerHandler, properties, ctx);

                      Thread thread = new Thread(taskServer);

                      thread.start();