Hello,

I've been unable to successfully configure JBPM/Hibernate to rely upon the EJB 
container for transaction demarcation.  

My Environment:
JBoss 4.0.2
Hibernate 3.0.5
JBPM 3.0.2
JDK 1.5 on Solaris

 jbpm.properties

  | jbpm.log.package.org.jbpm=info
  | jbpm.log.package.org.jbpm.persistence.hibernate=info
  | 
  | jbpm.scheduler.service.factory=org.jbpm.scheduler.impl.SchedulerServiceImpl
  | jbpm.task.instance.class=org.jbpm.taskmgmt.exe.TaskInstance
  | 
  | # uncomment the next line if JbpmSessionFactory.getInstance()
  | # should lookup the singleton instance from JNDI instead of creating 
  | # a default one.
  | #
  | jbpm.session.factory.jndi.name=java:/jbpm/JbpmSessionFactory
  | 
  | jbpm.hibernate.cfg.xml=jbpm.hibernate.cfg.xml
  | 
  | #hibernate.show_sql=true
  | #hibernate.query.substitutions=true 1, false 0
  | 
  | 

 jbpm.hibernate.cfg.xml

  | <!DOCTYPE hibernate-configuration PUBLIC
  |           "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
  |           
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd";>
  | <hibernate-configuration>
  |   <session-factory>
  |     <!-- jdbc connection properties -->
  |     <property 
name="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</property>
  |     <property name="hibernate.connection.datasource">java:/JBPMDS</property>
  |     <property 
name="hibernate.connection.provider_class">org.hibernate.connection.DatasourceConnectionProvider</property>
  |     <property 
name="hibernate.transaction.factory_class">org.hibernate.transaction.CMTTransactionFactory</property>
  |     <property 
name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
  |     <property 
name="hibernate.session_factory_name">java:com/env/hibernate/SessionFactory</property>
  |     <property 
name="hibernate.transaction.flush_before_completion">true</property>
  |     <property 
name="hibernate.transaction.auto_close_session">true</property>
  |     <!-- c3p0 connection pooling properties -->
  |     <property name="hibernate.c3p0.min_size">1</property>
  |     <property name="hibernate.c3p0.max_size">3</property>
  |     <!-- other hibernate properties -->
  |     <property name="hibernate.show_sql">true</property>
  | .
  | .
  | .
  |   </session-factory>
  | </hibernate-configuration>
  | 
  | 



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

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


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to