[jboss-user] [JBoss jBPM] - Re: Timers get cancelled in TimerServiceBean.ejbTimeout even

justin.zhou do-not-reply at jboss.com
Sat Jun 23 04:01:03 EDT 2007


jbpm.cfg.xml

<jbpm-context>
  | <service name="persistence" factory="org.jbpm.persistence.jta.JtaDbPersistenceServiceFactory" >
  |       <field name="sessionFactoryJndiName">
  |         <string value="java:/WorkflowSessionFactory" />
  |       </field>
  |       <field name="isCurrentSessionEnabled"><true /></field>
  |       <field name="isTransactionEnabled"><false /></field>
  |     </service>
  |     <service name="message" factory="org.jbpm.msg.jms.JmsMessageServiceFactoryImpl" />
  |     <service name="scheduler" factory="org.jbpm.scheduler.ejbtimer.EjbSchedulerServiceFactory" />
  |     <service name="tx" factory="org.jbpm.tx.TxServiceFactory" />
  |     <service name="logging" factory="org.jbpm.logging.db.DbLoggingServiceFactory" />
  |     <service name="authentication" factory="org.jbpm.security.authentication.DefaultAuthenticationServiceFactory" />
  |   </jbpm-context>
 


hibernate.cfg.xml

<session-factory name="java:/WorkflowSessionFactory">
  | 
  |     <!-- hibernate dialect -->
  |     <property name="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</property>
  | 
  |     <!-- JDBC connection properties (begin) ===
  |     <property name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver</property>
  |     <property name="hibernate.connection.url">jdbc:hsqldb:mem:jbpm</property>
  |     <property name="hibernate.connection.username">sa</property>
  |     <property name="hibernate.connection.password"></property>
  |     ==== JDBC connection properties (end) -->
  |     
  |     <property name="hibernate.cache.provider_class">org.hibernate.cache.EhCacheProvider</property>
  |     
  |     <!-- DataSource properties (begin) -->
  |     <property name="hibernate.connection.datasource">java:/XAJbpmDS</property>
  |     <!-- DataSource properties (end) -->
  |     
  |     <!-- JTA transaction properties (begin)
  |     <property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
  |     <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
  |     <property name="jta.UserTransaction">UserTransaction</property>
  |     === JTA transaction properties (end) -->
  | 
  |     <!-- CMT transaction properties (begin) -->
  |     <property name="hibernate.transaction.factory_class">org.hibernate.transaction.CMTTransactionFactory</property>
  |     <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
  |     <!-- CMT transaction properties (end) -->

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057101#4057101

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057101



More information about the jboss-user mailing list