[
https://jira.jboss.org/jira/browse/JBPM-2483?page=com.atlassian.jira.plug...
]
Joram Barrez commented on JBPM-2483:
------------------------------------
JPA is currently unsupported. Probably you can get it working, but it will require some
hacking and some Hibernate specific workarounds. See for example Seam, they use JPA and
jBPM together.
Spring+JPA(hibernate)+JBPM4 can not integrated
----------------------------------------------
Key: JBPM-2483
URL:
https://jira.jboss.org/jira/browse/JBPM-2483
Project: jBPM
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: jBPM 4.0
Environment: spring 2.5, jpa 1.0 , jbpm4.0
Reporter: fengwen li
Fix For: jBPM 4.x
I'm using JPA (hibernate implementation) so I would like to know how can I integrate
them.
spring applicationContext.xml
<bean id="entityManagerFactory"
class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"
p:dataSource-ref="dataSource">
<property name="jpaVendorAdapter">
<bean
class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
<property name="showSql" value="true" />
<property name="generateDdl" value="true" />
<property name="databasePlatform" value="${hibernate.dialect}"
/>
</bean>
</property>
</bean>
jbpm.cfg.xml
<process-engine-context>
<command-service>
<retry-interceptor />
<environment-interceptor />
<spring-transaction-interceptor />
</command-service>
</process-engine-context>
<transaction-context>
<transaction />
<hibernate-session current="true" />
</transaction-context>
--
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