JBoss Community

Concern regarding running JMSTaskServer as a thread from the EJB

created by sharyak in jBPM - View the full discussion

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

Reply to this message by going to Community

Start a new discussion in jBPM at Community