[jboss-jira] [JBoss JIRA] Commented: (JBPM-973) Implement a DbPersistenceService that delegates to transaction handling to Hibernate

Matt Read (JIRA) jira-events at lists.jboss.org
Fri Jun 1 07:32:18 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBPM-973?page=comments#action_12363844 ] 
            
Matt Read commented on JBPM-973:
--------------------------------

Further investigation has shown it's not quite as easy as this, particular if transactions are managed outside of jBPM. I'll post further information as I get it.

> Implement a DbPersistenceService that delegates to transaction handling to Hibernate
> ------------------------------------------------------------------------------------
>
>                 Key: JBPM-973
>                 URL: http://jira.jboss.com/jira/browse/JBPM-973
>             Project: JBoss jBPM
>          Issue Type: Feature Request
>          Components: Core Engine
>    Affects Versions: jBPM jPDL 3.2
>            Reporter: Matt Read
>         Assigned To: Tom Baeyens
>            Priority: Minor
>         Attachments: HibernateDbPersistenceServiceFactory.java
>
>
> Rather than use the JtaDbPersistenceService we wanted to delegate all transaction handling to Hibernate. The file attached to this issue needs the following jbpm.cfg.xml:
>     <service name="persistence" factory="com.catlin.workflow.engine.persistence.HibernateDbPersistenceServiceFactory" />
> and appropriate session context management in hibernate.cfg.xml:
>     	<property name="current_session_context_class">jta</property>
> or
>     	<property name="current_session_context_class">thread</property>
> The end result is all transactionality is delegated to jBPM's Hibernate context.
> Let me know if this is of any use and I'll neaten it up for use inside the jBPM source tree.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list