Using an application intensively with the JBoss BPMS 6.4.9 in embedded mode, some EJB competition problems can be faced up. ExecutorServiceEJBImpl is being used for scheduling jobs, finding a job, canceling jobs, etc.
The jBPM Executor is used inside the processes (AsyncWorkItem) and the application as follow:
- For processes: Injecting the Executor service via the "kie-deployment-descriptor.xml" like that:
- Inside the application simply using the following annotation:
If you want to schedule or cancel or requeue a request, it is not possible using ExecutorQueryServiceEJBImpl. Normally it should be possible to schedule 2 (or more) requests in the same time but ExecutorServiceEJB doesn't authorize that.