JBoss Community

JEE + jBPM + threads

created by Sergey Sazonov in jBPM - View the full discussion

Hi, I am new to jBPM and trying to integrate it with my JEE application. Basically I have a servlet handling all incoming requests and proxying them to an EJB stateless bean that contains all jBPM stuff. So if I call ksession.startProcess and my process has timer nodes then control returns immediately from this method and a new thread is created. This thread waits for delay specified for my timer node and then shuts down.

1. Could you please help me and explain how I can avoid additional thread creation.

2. And maybe you can give me any advices for best practice in integration JBPM5 and JEE for long running processes with global and timer events.

 

Thanks.

Reply to this message by going to Community

Start a new discussion in jBPM at Community