[jboss-user] [jBPM Users] - Re: How to start JobExecutor with jBPM 4 + Spring
do-not-reply at jboss.com
Wed Oct 7 06:25:32 EDT 2009
"unsavory" wrote : Does anyone have any idea how to start the JobExecutor? I have configured the JobExecutor in the jbpm.cfg.xml file and it is working. However, it only seems to run when an asynchronous activity is started (ie: a task with a timeout in it is created).
| According to the documentation I just need to add this line to my jbpm.cfg.xml:
| <job-executor threads="4" idle="15000" idle-max="60000" lock-millis="3600000" />
| I'm concerned because the JobExecutor does not seem to run when the server is started such as in a server restart. Therefore if I had old jobs from before the server was shut down, they would not run.
| I'm running jBPM 4 in a Spring container if that matters.
We are also running jBPM 4 in spring + JTA and we are not having the same problem as you describe. We start our spring context from a simple war project that uses a parent spring context loader at the ear level (we are also using ejbs). When the application is started the jobexecutor is started automaticly as we have setup spring to execute the buildProcessEngine factory method on SpringJbpmConfiguration at spring startup (lazy-init=false).
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4259097#4259097
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4259097
More information about the jboss-user