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:
~~~
<work-item-handler>
<resolver>ejb</resolver>
<identifier>...........</identifier>
<parameters>
<parameter xsi:type="xs:string">runtimeManager</parameter>
<parameter xsi:type="xs:string">jndi:java:global/.............../ExecutorServiceEJBImpl</parameter>
</parameters>
<name>JobExecutor</name>
</work-item-handler>
~~~
- Inside the application simply using the following annotation:
~~~
@EJB
ExecutorServiceEJB executorService;
~~~
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.
- is cloned by
-
RHBPMS-5224 [GSS] (6.4.z) ExecutorService EJB does not authorize 2 (or more) schedule requests in the same time
- Verified