2 Replies Latest reply on Aug 20, 2007 10:36 AM by mputz

    SchedulerServlet for jbpm 3.2

    akmanocha

      I have seen following piece of code used in jBPM with the previous versions
      (till 3.1)

      <servlet>
       <servlet-name>SchedulerServlet</servlet-name>
       <servlet-class>org.jbpm.scheduler.impl.SchedulerServlet</servlet-class>
       <load-on-startup>1</load-on-startup>
       </servlet>
       <servlet-mapping>
       <servlet-name>SchedulerServlet</servlet-name>
       <url-pattern>/scheduler</url-pattern>
       </servlet-mapping>
      


      but I guess in the jbpm 3.2 the SchedulerServlet invoking thing has been changed. i need to use it through web application is there some other way to access it now, I am using the following service in the jbpm.cfg.xml
       <jbpm-context>
       <service name="scheduler" factory="org.jbpm.scheduler.ejbtimer.EjbSchedulerServiceFactory" />
       </jbpm-context>
      


      thanks in advance for any pointers


        • 1. Re: SchedulerServlet for jbpm 3.2
          akmanocha

          Please help me out here....

          and I typed the wrong class I configured in jbpm.cfg.xml for "scheduler" sevice its the following entry I am using

          <service name="scheduler" factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory" />
          


          • 2. Re: SchedulerServlet for jbpm 3.2
            mputz

            what used to be in the SchedulerServlet is now (jBPM 3.2.x) implemented in the JobExecuter servlet, if you deploy jBPM inside a war file. If you take the ear (enterprise version), ejb timers are used. Have a look at the jbpm-console.war/WEB-INF/web.xml and you'll find the config sections at the bottom for both approaches.

            Regarding the jbpm.cfg.xml config section you are referring to, I'd take EjbSchedulerServiceFactory as scheduler factory.