3 Replies Latest reply on Jan 28, 2009 6:53 AM by karluqs

    [size=16][b]JobExecutor not started when restart jboss serve

    kasabov

      Hi, I have process definition with timer in one state which fires after 2 minutes. I started a process and then a I stopped jboss server. When a started the server again, timer didn't execute. I had to start JobExecutor again.

      Is there any way to configure job executor in jbpm.cfg.xml to start when jboss starts, before jbpm tries to continue the processes?If not, how to do this in other way?

      Can you explain how to configure job executor in jbpm.cfg.xml?

        • 1. Re: [size=16][b]JobExecutor not started when restart jboss s
          kukeltje

          the plain jobexecutor is satarted via a servletlisteber/filter. read the docs and/or search the forum

          • 2. Re: [size=16][b]JobExecutor not started when restart jboss s
            kasabov

            I searched a lot of time, but I couldn't find anything about JobExecutor configuration. So you say that there's no way to configure it in jbpm.cfg.xml to start automaticly when jboss starts.

            • 3. Re: [size=16][b]JobExecutor not started when restart jboss s
              karluqs

              Hi kasabov,

              I had the same problem. Configure in the web.xml the following listener

               <listener>
               <description>
               Starts the job executor on servlet context initialization and stops it on
               servlet context destruction.
               </description>
               <listener-class>org.jbpm.web.JobExecutorLauncher</listener-class>
               </listener>
              


              This will start the jobscheduler

              You can also configure the following servlet, that's optional, only for information on jobScheduler health

               <servlet>
               <description>
               This servlet has the purpose of executing pending jobs. Deprecated,
               replaced by JobExecutorLauncher.
               </description>
               <servlet-name>JobExecutorServlet</servlet-name>
               <servlet-class>org.jbpm.job.executor.JobExecutorServlet</servlet-class>
               <load-on-startup>1</load-on-startup>
               </servlet>
               <servlet-mapping>
               <servlet-name>JobExecutorServlet</servlet-name>
               <url-pattern>/jobs</url-pattern>
               </servlet-mapping>