[
https://jira.jboss.org/jira/browse/JBPM-2038?page=com.atlassian.jira.plug...
]
Mark Kedzierski updated JBPM-2038:
----------------------------------
Attachment: HibernateSessionFactoryBinding.java
HibernateSessionFactoryDescriptor.java
I wanted JBPM to use my session factory so I could save/load objects within the same JTA
transaction as JBPM used for the process persistence. I accomplished this with a couple
small modifications. I added a "jndi_name" binding variable to the
HibernateSessionFactoryBinding, and I changed HibernateSessionFactoryDescriptor to read
that variable and load the SessionFactory from JNDI (as opposed to creating one from
configuration). I then added the JBPM mapping files to my own hibernate configuration.
Then I changed the jbpm.cfg.xml like so:
<hibernate-session-factory
jndi_name="java:/hibernate/SessionFactory_bevopt"/>
and that is it. Everything still seems to work...
user provided hibernate session
-------------------------------
Key: JBPM-2038
URL:
https://jira.jboss.org/jira/browse/JBPM-2038
Project: JBoss jBPM
Issue Type: Task
Security Level: Public(Everyone can see)
Reporter: Tom Baeyens
Assignee: Tom Baeyens
Priority: Minor
Fix For: jBPM 4.x
Attachments: HibernateSessionFactoryBinding.java,
HibernateSessionFactoryDescriptor.java
make sure that jbpm can work with a hibernate session or a jdbc connection that is
provided by the client.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira