Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.1
-
None
Description
BPELTestAbstract creates a ProcessStoreImpl based on OpenJPA.
I am trying to package the test-environment in a lightweight application without hibernate on the classpath.
In order to succeed I had to apply this patch.
I took the opportunity to remove the field _guid that was not used.
The behavior is identical except that it can execute without hibernate on the classpath.
ndex: bpel-store/src/main/java/org/apache/ode/store/ProcessStoreImpl.java
===================================================================
— bpel-store/src/main/java/org/apache/ode/store/ProcessStoreImpl.java
(revision 713207)
+++ bpel-store/src/main/java/org/apache/ode/store/ProcessStoreImpl.java
(working copy)
@@ -86,9 +86,6 @@
/** Guards access to the _processes and _deploymentUnits */
private final ReadWriteLock _rw = new ReentrantReadWriteLock();
- /** GUID used to create a unique in-memory db. */
- private String _guid = new GUID().toString();
-
private ConfStoreConnectionFactory _cf;
private EndpointReferenceContext eprContext;
@@ -125,7 +122,7 @@
} else
}
+ /**
+ * @return a ProcessStoreImpl suitable for tests. It relies on a new in-memory hsqldb database.
+ */
+ public static ProcessStoreImpl
createHsqlDbInMemJPAStore(EndpointReferenceContext eprContext,
+ OdeConfigProperties props)
+ private ProcessStoreImpl(EndpointReferenceContext eprContext,
ConfStoreConnectionFactory cf, DataSource inMemDs)
+
public void shutdown() {
if (_inMemDs != null) {
shutdownInternalDB(_inMemDs);