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

    • Bug
    • Resolution: Done
    • Major
    • 7.3.0.GA
    • 6.x.x
    • jBPM Core
      • 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.

      Attachments

        Issue Links

          Activity

            People

              swiderski.maciej Maciej Swiderski (Inactive)
              rhn-support-omolinab Oscar Molina
              Marian Macik Marian Macik
              Marian Macik Marian Macik
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: