Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extending production db testing to executor-services module.
- Loading branch information
Showing
5 changed files
with
106 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
jbpm-services/executor-services/src/test/filtered-resources/META-INF/persistence.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,40 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<persistence version="2.0" | |||
xmlns="http://java.sun.com/xml/ns/persistence" | |||
xmlns:orm="http://java.sun.com/xml/ns/persistence/orm" | |||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |||
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd | |||
http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_2_0.xsd"> | |||
|
|||
<persistence-unit name="org.jbpm.executor" transaction-type="RESOURCE_LOCAL"> | |||
<provider>org.hibernate.ejb.HibernatePersistence</provider> | |||
<mapping-file>META-INF/Executor-orm.xml</mapping-file> | |||
<class>org.jbpm.executor.entities.ErrorInfo</class> | |||
<class>org.jbpm.executor.entities.RequestInfo</class> | |||
<exclude-unlisted-classes>true</exclude-unlisted-classes> | |||
|
|||
<properties> | |||
<property name="hibernate.dialect" value="${maven.hibernate.dialect}" /> | |||
<property name="hibernate.connection.autocommit" value="false" /> | |||
|
|||
<property name="hibernate.max_fetch_depth" value="3" /> | |||
<property name="hibernate.hbm2ddl.auto" value="create-drop" /> | |||
<property name="hibernate.show_sql" value="false" /> | |||
|
|||
<property name="hibernate.connection.driver_class" value="${maven.jdbc.driver.class}" /> | |||
<property name="hibernate.connection.url" value="${maven.jdbc.url}" /> | |||
<property name="hibernate.connection.username" value="${maven.jdbc.username}" /> | |||
<property name="hibernate.connection.password" value="${maven.jdbc.password}" /> | |||
|
|||
<!-- BZ 841786: AS7/EAP 6/Hib 4 uses new (sequence) generators which seem to cause problems --> | |||
<property name="hibernate.id.new_generator_mappings" value="false" /> | |||
|
|||
<!-- needed for JTA testing | |||
<property name="hibernate.transaction.jta.platform" value="org.hibernate.service.jta.platform.internal.BitronixJtaPlatform" /> | |||
--> | |||
</properties> | |||
</persistence-unit> | |||
|
|||
|
|||
|
|||
</persistence> |
20 changes: 20 additions & 0 deletions
20
jbpm-services/executor-services/src/test/filtered-resources/datasource.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,20 @@ | |||
maxPoolSize=${maven.btm.maxPoolSize} | |||
allowLocalTransactions=true | |||
# JDBC/Database properties that are set in the maven pom | |||
# | |||
# the below variable names (i.e. "${maven.datasource.classname}) are | |||
# automagically replaced with their values (defined in the pom.xml) | |||
# because of the fact that <filtering> is set to true in for the | |||
# src/test/resources directory in the pom. | |||
# | |||
className=${maven.datasource.classname} | |||
driverClassName=${maven.jdbc.driver.class} | |||
user=${maven.jdbc.username} | |||
password=${maven.jdbc.password} | |||
url=${maven.jdbc.url} | |||
serverName=${maven.jdbc.db.server} | |||
portNumber=${maven.jdbc.db.port} | |||
databaseName=${maven.jdbc.db.name} | |||
makeBaseDb=false | |||
testMarshalling=false | |||
txType=${maven.tx.type} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters