[jboss-dev-forums] [jBPM Development] - JobExecutor cleans up all jbpm tables??

Harish Panyda do-not-reply at jboss.com
Tue Dec 21 00:56:17 EST 2010


Harish Panyda [http://community.jboss.org/people/harishpandya] created the discussion

"JobExecutor cleans up all jbpm tables??"

To view the discussion, visit: http://community.jboss.org/message/576891#576891

--------------------------------------------------------------
Hi,

I am using jboss-4.2.2
                jbpm-3.2.7.


to use timer i have started the jobschedular at the time of deploying.
Timer worked fine but when ever i restarted/redeployed jbpm all the entries in the 

jbpm_processdefinition and all the other jbpm tables gets cleaned(which i don't want).

If i doesn't initiate the job executor it works fine but timer dosen't work.

Does Any one have idea why this is happening.


schedular related entries in *jbpm.config file* ::>


<bean name='jbpm.job.executor' class='org.jbpm.job.executor.JobExecutor'>
    <field name='jbpmConfiguration'><ref bean='jbpmConfiguration' /></field>
    <field name='name'><string value='JbpmJobExecutor' /></field>
    <field name='nbrOfThreads'><int value='1' /></field>
    <field name='idleInterval'><int value='5000' /></field>
    <field name='maxIdleInterval'><int value='3600000' /></field> <!-- 1 hour -->
    <field name='historyMaxSize'><int value='20' /></field>
    <field name='maxLockTime'><int value='600000' /></field> <!-- 10 minutes -->
    <field name='lockMonitorInterval'><int value='60000' /></field> <!-- 1 minute -->
    <field name='lockBufferTime'><int value='5000' /></field> <!-- 5 seconds -->
  </bean>




-----------------------------------------------------

schedular related entries in hibernate.config::>



<!-- job mapping files -->
    <mapping resource="org/jbpm/job/Job.hbm.xml"/>
    <mapping resource="org/jbpm/job/Timer.hbm.xml"/>
    <mapping resource="org/jbpm/job/ExecuteNodeJob.hbm.xml"/>
    <mapping resource="org/jbpm/job/ExecuteActionJob.hbm.xml"/>
    <mapping resource="org/jbpm/job/CleanUpProcessJob.hbm.xml"/>


-----------------------------------------------------

schedular related entries in web.xml::>

<!--JbpmJobExecutorServlet BEGIN-->
   <servlet>
     <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>
   <!--JbpmJobExecutorServlet END -->


Thanks in Advance.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/576891#576891]

Start a new discussion in jBPM Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2035]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20101221/3505c0ef/attachment.html 


More information about the jboss-dev-forums mailing list