Information Technology Reference
In-Depth Information
Persistence and transaction configuration for
jBPM6
In order to configure the JPA persistence in our environment so that jBPM6 can create and
load persistent KIE sessions and process instances, we need to configure a set of compon-
ents and tie them together.
The first components we will need are the JAR files in our classpath to be able to use JPA
directly from our code, and also directly from jBPM6. The dependencies we will use will
be implementing JPA 2.0, and the Maven references to the relevant JAR files can be found
in the persistent-process-examples project's pom.xml file:
<!-- JPA 2.0 standard library -->
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.0-api</artifactId>
<version>1.0.1.Final</version>
</dependency>
<!-- Hibernate implementation of the JPA 2.0 standard
library -->
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>4.2.3.Final</version>
</dependency>
<!-- JPA management in jBPM6 -->
<dependency>
<groupId>org.jbpm</groupId>
<artifactId>jbpm-persistence-jpa</artifactId>
<version>6.1.0.Beta3</version>
</dependency>
<!-- in-memory database -->
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>1.2.128</version>
</dependency>
<!-- simple transaction manager -->
Search WWH ::




Custom Search