Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-1711

ExecutorService EJB does not authorize 2 (or more) schedule requests in the same time

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 6.x.x
    • Fix Version/s: 7.3.0.GA
    • Component/s: jBPM Core
    • Labels:
    • Environment:
      • Red Hat JBoss BPM Suite 6.4.9

      Description

      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  swiderski.maciej Maciej Swiderski
                  Reporter:
                  oscar.molina Oscar Molina
                  Tester:
                  Marian Macik
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: