Hi, i have somes questions.
1- If i try to use the jBPM jobscheduler, what happen to timers and asynchronism ? It will
not use EJB timer and JMS (with queues JbpmJobQueue and JbpmCommandQueue ) for this but
your own JobExecutor that's right ? And i can delete jbpm-enterprise.jar so ;-)?
2- Why have you created these EJBs if your own implementation is good ?
Actually, under my jboss as, in deploy/jBPM/jbpm-service.sar, my jbpm.cfg.xml file is :
<jbpm-configuration>
|
| <jbpm-context>
| <service name="persistence"
factory="org.jbpm.persistence.jta.JtaDbPersistenceServiceFactory" />
| <service name="message"
factory="org.jbpm.msg.jms.JmsMessageServiceFactory" />
| <service name="scheduler"
factory="org.jbpm.scheduler.ejbtimer.EntitySchedulerServiceFactory" />
| <service name="tx" factory="org.jbpm.tx.TxServiceFactory"
/>
| <service name="authentication"
factory="org.jbpm.security.authentication.DefaultAuthenticationServiceFactory"
/>
| </jbpm-context>
|
| <string name="jbpm.classLoader" value="context" />
|
| <null name="jbpm.job.executor" />
|
| </jbpm-configuration>
So, persistence, tx and authentification are still OK but i have to change:
<service name="message"
factory="org.jbpm.msg.db.DbMessageServiceFactory" />
<service name="scheduler"
factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory" />
and put, like in the default configuration 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>
Is it right ?
Thx for all.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4248404#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...