[jbpm-commits] JBoss JBPM SVN: r4044 - in jbpm4/branches/tbaeyens: modules/config/src/main and 12 other directories.

do-not-reply at jboss.org do-not-reply at jboss.org
Thu Feb 26 06:11:31 EST 2009


Author: tom.baeyens at jboss.com
Date: 2009-02-26 06:11:30 -0500 (Thu, 26 Feb 2009)
New Revision: 4044

Added:
   jbpm4/branches/tbaeyens/modules/config/src/main/config/
   jbpm4/branches/tbaeyens/modules/config/src/main/config/build.xml
   jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/
   jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/cache/
   jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/cache/hashtable.xml
   jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/datasource/
   jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/datasource/db2.xml
   jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/datasource/mysql.xml
   jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/datasource/oracle.xml
   jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/datasource/postgresql.xml
   jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/datasource/sybase.xml
   jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/jdbc/
   jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/jdbc/db2.xml
   jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/jdbc/hsqldb.inmemory.xml
   jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/jdbc/mysql.xml
   jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/jdbc/oracle.xml
   jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/jdbc/postgresql.xml
   jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/jdbc/sybase.xml
   jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/mappings/
   jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/mappings/jpdl.xml
   jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/mappings/pvm.xml
   jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/other/
   jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/other/format.sql.xml
   jbpm4/branches/tbaeyens/modules/config/src/main/config/jboss/
   jbpm4/branches/tbaeyens/modules/config/src/main/config/jboss/datasource/
   jbpm4/branches/tbaeyens/modules/config/src/main/config/jboss/datasource/jbpm-hsqldb-ds.xml
   jbpm4/branches/tbaeyens/modules/config/src/main/config/jboss/datasource/jbpm-mysql-ds.xml
   jbpm4/branches/tbaeyens/modules/config/src/main/config/jboss/datasource/jbpm-oracle-ds.xml
   jbpm4/branches/tbaeyens/modules/config/src/main/config/jboss/datasource/jbpm-postgresql-ds.xml
   jbpm4/branches/tbaeyens/modules/config/src/main/config/jboss/datasource/jbpm-sybase-ds.xml
   jbpm4/branches/tbaeyens/modules/config/src/main/config/jbpm/
   jbpm4/branches/tbaeyens/modules/config/src/main/config/jbpm/part1.jbpm.cfg.xml
   jbpm4/branches/tbaeyens/modules/config/src/main/config/jbpm/part2.jbpm.cfg.xml
Removed:
   jbpm4/branches/tbaeyens/modules/config/src/main/resources/db2/
   jbpm4/branches/tbaeyens/modules/config/src/main/resources/hibernate.cfg.xml
   jbpm4/branches/tbaeyens/modules/config/src/main/resources/hibernate.properties
   jbpm4/branches/tbaeyens/modules/config/src/main/resources/mysql/
   jbpm4/branches/tbaeyens/modules/config/src/main/resources/oracle/
   jbpm4/branches/tbaeyens/modules/config/src/main/resources/postgresql/
   jbpm4/branches/tbaeyens/modules/config/src/main/resources/sybase/
Modified:
   jbpm4/branches/tbaeyens/modules/test-db/pom.xml
   jbpm4/branches/tbaeyens/pom.xml
Log:
added config tool

Added: jbpm4/branches/tbaeyens/modules/config/src/main/config/build.xml
===================================================================
--- jbpm4/branches/tbaeyens/modules/config/src/main/config/build.xml	                        (rev 0)
+++ jbpm4/branches/tbaeyens/modules/config/src/main/config/build.xml	2009-02-26 11:11:30 UTC (rev 4044)
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<project name="build.configuration">
+	
+	<property file="build.properties" />
+	
+  <!-- configurable properties -->
+  <property name="dest.dir" value="../resources" />
+  <property name="dest.filename" value="jbpm.cfg.xml" />
+  <property name="hibernate.format.sql" value="true" />
+	<property name="hibernate.cache" value="hashtable" />
+  <property name="hibernate.connection.type" value="jdbc" />
+  <property name="hibernate.database" value="hsqldb.inmemory" />
+  <property name="hibernate.jpdl" value="true" />
+	
+	<target name="build.config.file" description="builds jbpm configuration file">
+		<mkdir dir="${dest.dir}" />
+		<copy file="jbpm/part1.jbpm.cfg.xml" tofile="${dest.dir}/${dest.filename}" overwrite="true" />
+		<concat append="true" destfile="${dest.dir}/${dest.filename}">
+			<fileset dir=".">
+			  <include name="hibernate/${hibernate.connection.type}/${hibernate.database}.xml"/>
+        <include name="hibernate/cache/${hibernate.cache}.xml"/>
+			</fileset>
+		</concat>
+    <condition property="include.hibernate.format.sql">
+    	<equals arg1="hibernate.format.sql" arg2="true" />
+    </condition>
+    <antcall target="include.hibernate.format.sql" />
+    <concat append="true" destfile="${dest.dir}/${dest.filename}">
+      <fileset dir=".">
+        <include name="hibernate/mappings/pvm.xml"/>
+      </fileset>
+    </concat>
+    <condition property="include.jpdl.mappings">
+      <equals arg1="${hibernate.jpdl}" arg2="true" />
+    </condition>
+    <antcall target="include.jpdl.mappings" />
+    <concat append="true" destfile="${dest.dir}/${dest.filename}">
+      <fileset dir=".">
+        <include name="jbpm/part2.jbpm.cfg.xml"/>
+      </fileset>
+    </concat>
+	</target>
+	
+	<target name="include.hibernate.format.sql" if="include.hibernate.format.sql">
+    <concat append="true" destfile="${dest.dir}/${dest.filename}">
+      <fileset dir=".">
+        <include name="hibernate/other/format.sql.xml"/>
+      </fileset>
+    </concat>
+  </target>
+
+  <target name="include.jpdl.mappings" if="include.jpdl.mappings">
+    <concat append="true" destfile="${dest.dir}/${dest.filename}">
+      <fileset dir=".">
+        <include name="hibernate/mappings/jpdl.xml"/>
+      </fileset>
+    </concat>
+  </target>
+
+</project>
\ No newline at end of file


Property changes on: jbpm4/branches/tbaeyens/modules/config/src/main/config/build.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/cache/hashtable.xml
===================================================================
--- jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/cache/hashtable.xml	                        (rev 0)
+++ jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/cache/hashtable.xml	2009-02-26 11:11:30 UTC (rev 4044)
@@ -0,0 +1,2 @@
+      <property name="hibernate.cache.use_second_level_cache" value="true" />
+      <property name="hibernate.cache.provider_class" value="org.hibernate.cache.HashtableCacheProvider" />


Property changes on: jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/cache/hashtable.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/datasource/db2.xml
===================================================================
--- jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/datasource/db2.xml	                        (rev 0)
+++ jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/datasource/db2.xml	2009-02-26 11:11:30 UTC (rev 4044)
@@ -0,0 +1,5 @@
+      <property name="hibernate.dialect" value="org.hibernate.dialect.DB2Dialect" />
+      <property name="hibernate.connection.datasource">java:JbpmDS</property>
+      <property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
+      <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
+      <property name="jta.UserTransaction">UserTransaction</property>


Property changes on: jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/datasource/db2.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/datasource/mysql.xml
===================================================================
--- jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/datasource/mysql.xml	                        (rev 0)
+++ jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/datasource/mysql.xml	2009-02-26 11:11:30 UTC (rev 4044)
@@ -0,0 +1,5 @@
+      <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLInnoDBDialect" />
+      <property name="hibernate.connection.datasource">java:JbpmDS</property>
+      <property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
+      <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
+      <property name="jta.UserTransaction">UserTransaction</property>


Property changes on: jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/datasource/mysql.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/datasource/oracle.xml
===================================================================
--- jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/datasource/oracle.xml	                        (rev 0)
+++ jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/datasource/oracle.xml	2009-02-26 11:11:30 UTC (rev 4044)
@@ -0,0 +1,5 @@
+      <property name="hibernate.dialect" value="org.hibernate.dialect.Oracle9Dialect" />
+      <property name="hibernate.connection.datasource">java:JbpmDS</property>
+      <property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
+      <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
+      <property name="jta.UserTransaction">UserTransaction</property>


Property changes on: jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/datasource/oracle.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/datasource/postgresql.xml
===================================================================
--- jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/datasource/postgresql.xml	                        (rev 0)
+++ jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/datasource/postgresql.xml	2009-02-26 11:11:30 UTC (rev 4044)
@@ -0,0 +1,5 @@
+      <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" />
+      <property name="hibernate.connection.datasource">java:JbpmDS</property>
+      <property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
+      <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
+      <property name="jta.UserTransaction">UserTransaction</property>


Property changes on: jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/datasource/postgresql.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/datasource/sybase.xml
===================================================================
--- jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/datasource/sybase.xml	                        (rev 0)
+++ jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/datasource/sybase.xml	2009-02-26 11:11:30 UTC (rev 4044)
@@ -0,0 +1,5 @@
+      <property name="hibernate.dialect" value="org.hibernate.dialect.SybaseDialect" />
+      <property name="hibernate.connection.datasource">java:JbpmDS</property>
+      <property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
+      <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
+      <property name="jta.UserTransaction">UserTransaction</property>


Property changes on: jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/datasource/sybase.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/jdbc/db2.xml
===================================================================
--- jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/jdbc/db2.xml	                        (rev 0)
+++ jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/jdbc/db2.xml	2009-02-26 11:11:30 UTC (rev 4044)
@@ -0,0 +1,5 @@
+      <property name="hibernate.dialect" value="org.hibernate.dialect.DB2Dialect" />
+      <property name="hibernate.connection.driver_class" value="com.ibm.db2.jcc.DB2Driver" />
+      <property name="hibernate.connection.url" value="${jdbc.db2.url}" />
+      <property name="hibernate.connection.username" value="${jdbc.db2.username}" />
+      <property name="hibernate.connection.password" value="${jdbc.db2.password}" />


Property changes on: jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/jdbc/db2.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/jdbc/hsqldb.inmemory.xml
===================================================================
--- jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/jdbc/hsqldb.inmemory.xml	                        (rev 0)
+++ jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/jdbc/hsqldb.inmemory.xml	2009-02-26 11:11:30 UTC (rev 4044)
@@ -0,0 +1,6 @@
+      <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect" />
+      <property name="hibernate.connection.driver_class" value="org.hsqldb.jdbcDriver" />
+      <property name="hibernate.connection.url" value="jdbc:hsqldb:mem:." />
+      <property name="hibernate.connection.username" value="sa" />
+      <property name="hibernate.connection.password" value="" />
+      <property name="hibernate.hbm2ddl.auto" value="create-drop" />


Property changes on: jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/jdbc/hsqldb.inmemory.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/jdbc/mysql.xml
===================================================================
--- jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/jdbc/mysql.xml	                        (rev 0)
+++ jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/jdbc/mysql.xml	2009-02-26 11:11:30 UTC (rev 4044)
@@ -0,0 +1,5 @@
+      <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLInnoDBDialect" />
+      <property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver" />
+      <property name="hibernate.connection.url" value="${jdbc.mysql.url}" />
+      <property name="hibernate.connection.username" value="${jdbc.mysql.username}" />
+      <property name="hibernate.connection.password" value="${jdbc.mysql.password}" />
\ No newline at end of file


Property changes on: jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/jdbc/mysql.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/jdbc/oracle.xml
===================================================================
--- jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/jdbc/oracle.xml	                        (rev 0)
+++ jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/jdbc/oracle.xml	2009-02-26 11:11:30 UTC (rev 4044)
@@ -0,0 +1,6 @@
+      <property name="hibernate.dialect" value="org.hibernate.dialect.Oracle9Dialect" />
+      <property name="hibernate.connection.driver_class" value="oracle.jdbc.driver.OracleDriver" />
+      <property name="hibernate.connection.url" value="${jdbc.oracle.url}" />
+      <property name="hibernate.connection.username" value="${jdbc.oracle.username}" />
+      <property name="hibernate.connection.password" value="${jdbc.oracle.password}" />
+      <property name="hibernate.query.substitutions" value="true 1, false 0" />


Property changes on: jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/jdbc/oracle.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/jdbc/postgresql.xml
===================================================================
--- jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/jdbc/postgresql.xml	                        (rev 0)
+++ jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/jdbc/postgresql.xml	2009-02-26 11:11:30 UTC (rev 4044)
@@ -0,0 +1,5 @@
+      <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" />
+      <property name="hibernate.connection.driver_class" value="org.postgresql.Driver" />
+      <property name="hibernate.connection.url" value="${jdbc.postgresql.url}" />
+      <property name="hibernate.connection.username" value="${jdbc.postgresql.username}" />
+      <property name="hibernate.connection.password" value="${jdbc.postgresql.password}" />


Property changes on: jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/jdbc/postgresql.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/jdbc/sybase.xml
===================================================================
--- jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/jdbc/sybase.xml	                        (rev 0)
+++ jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/jdbc/sybase.xml	2009-02-26 11:11:30 UTC (rev 4044)
@@ -0,0 +1,5 @@
+      <property name="hibernate.dialect" value="org.hibernate.dialect.SybaseDialect" />
+      <property name="hibernate.connection.driver_class" value="net.sourceforge.jtds.jdbc.Driver" />
+      <property name="hibernate.connection.url" value="${jdbc.sybase.url}" />
+      <property name="hibernate.connection.username="${jdbc.sybase.username}" />
+      <property name="hibernate.connection.password" value="${jdbc.sybase.password}" />
\ No newline at end of file


Property changes on: jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/jdbc/sybase.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/mappings/jpdl.xml
===================================================================
--- jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/mappings/jpdl.xml	                        (rev 0)
+++ jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/mappings/jpdl.xml	2009-02-26 11:11:30 UTC (rev 4044)
@@ -0,0 +1 @@
+      <mapping resource="jbpm.jpdl.hbm.xml" />


Property changes on: jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/mappings/jpdl.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/mappings/pvm.xml
===================================================================
--- jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/mappings/pvm.xml	                        (rev 0)
+++ jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/mappings/pvm.xml	2009-02-26 11:11:30 UTC (rev 4044)
@@ -0,0 +1,8 @@
+      <mapping resource="jbpm.pvm.typedefs.hbm.xml" />
+      <mapping resource="jbpm.pvm.wire.hbm.xml" />
+      <mapping resource="jbpm.pvm.definition.hbm.xml" />
+      <mapping resource="jbpm.pvm.execution.hbm.xml" />
+      <mapping resource="jbpm.pvm.variable.hbm.xml" />
+      <mapping resource="jbpm.pvm.job.hbm.xml" />
+      <mapping resource="jbpm.pvm.history.hbm.xml" />
+      <mapping resource="jbpm.task.hbm.xml" />


Property changes on: jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/mappings/pvm.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/other/format.sql.xml
===================================================================
--- jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/other/format.sql.xml	                        (rev 0)
+++ jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/other/format.sql.xml	2009-02-26 11:11:30 UTC (rev 4044)
@@ -0,0 +1 @@
+      <property name="hibernate.format_sql" value="true" />


Property changes on: jbpm4/branches/tbaeyens/modules/config/src/main/config/hibernate/other/format.sql.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbpm4/branches/tbaeyens/modules/config/src/main/config/jboss/datasource/jbpm-hsqldb-ds.xml
===================================================================
--- jbpm4/branches/tbaeyens/modules/config/src/main/config/jboss/datasource/jbpm-hsqldb-ds.xml	                        (rev 0)
+++ jbpm4/branches/tbaeyens/modules/config/src/main/config/jboss/datasource/jbpm-hsqldb-ds.xml	2009-02-26 11:11:30 UTC (rev 4044)
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<datasources>
+
+  <local-tx-datasource>
+    <jndi-name>JbpmDS</jndi-name>
+
+    <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}jbpm4DB</connection-url>    
+    <driver-class>org.hsqldb.jdbcDriver</driver-class>
+    <user-name>sa</user-name>
+    <password></password>
+
+    <!-- connection pool parameters -->
+    <min-pool-size>1</min-pool-size>
+    <max-pool-size>5</max-pool-size>
+
+    <!-- disable idle connection removal, hsqldb does not reap threads on closed connections -->
+    <idle-timeout-minutes>0</idle-timeout-minutes>
+    <!-- check all statements are closed when the connection is returned to the pool -->
+    <track-statements />
+    <!-- hsqldb benefits from prepared statement caching -->
+    <prepared-statement-cache-size>32</prepared-statement-cache-size>
+
+    <!-- corresponding type-mapping in conf/standardjbosscmp-jdbc.xml -->
+    <metadata>
+      <type-mapping>Hypersonic SQL</type-mapping>
+    </metadata>
+
+    <!-- ensure the datasource is not initialized before the database itself -->
+    <depends>jboss:service=Hypersonic,database=jbpm4DB</depends>
+  </local-tx-datasource>
+
+  <mbean code="org.jboss.jdbc.HypersonicDatabase" name="jboss:service=Hypersonic,database=jbpm4DB">
+    <attribute name="Database">jbpm4DB</attribute>
+    <attribute name="InProcessMode">true</attribute>
+  </mbean>
+
+</datasources>


Property changes on: jbpm4/branches/tbaeyens/modules/config/src/main/config/jboss/datasource/jbpm-hsqldb-ds.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbpm4/branches/tbaeyens/modules/config/src/main/config/jboss/datasource/jbpm-mysql-ds.xml
===================================================================
--- jbpm4/branches/tbaeyens/modules/config/src/main/config/jboss/datasource/jbpm-mysql-ds.xml	                        (rev 0)
+++ jbpm4/branches/tbaeyens/modules/config/src/main/config/jboss/datasource/jbpm-mysql-ds.xml	2009-02-26 11:11:30 UTC (rev 4044)
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<datasources>
+
+  <xa-datasource>
+    <jndi-name>JbpmDS</jndi-name>
+
+    <xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class>
+    <xa-datasource-property name="ServerName">${jdbc.mysql.server}</xa-datasource-property>
+    <xa-datasource-property name="PortNumber">${jdbc.mysql.port}</xa-datasource-property>
+    <xa-datasource-property name="DatabaseName">${jdbc.mysql.database}</xa-datasource-property>
+    <user-name>${jdbc.mysql.username}</user-name>
+    <password>${jdbc.mysql.password}</password>
+
+    <!-- reduce isolation from the default level (repeatable read) -->
+    <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
+    <!-- separate connections used with and without JTA transaction -->
+    <no-tx-separate-pools />
+    <!-- disable transaction interleaving -->
+    <track-connection-by-tx />
+
+    <!-- leverage mysql integration features -->
+    <exception-sorter-class-name>
+      com.mysql.jdbc.integration.jboss.ExtendedMysqlExceptionSorter
+    </exception-sorter-class-name>
+    <valid-connection-checker-class-name>
+      com.mysql.jdbc.integration.jboss.MysqlValidConnectionChecker
+    </valid-connection-checker-class-name>
+
+    <!-- corresponding type-mapping in conf/standardjbosscmp-jdbc.xml -->
+    <metadata>
+      <type-mapping>mySQL</type-mapping>
+    </metadata>
+  </xa-datasource>
+
+</datasources>
\ No newline at end of file


Property changes on: jbpm4/branches/tbaeyens/modules/config/src/main/config/jboss/datasource/jbpm-mysql-ds.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbpm4/branches/tbaeyens/modules/config/src/main/config/jboss/datasource/jbpm-oracle-ds.xml
===================================================================
--- jbpm4/branches/tbaeyens/modules/config/src/main/config/jboss/datasource/jbpm-oracle-ds.xml	                        (rev 0)
+++ jbpm4/branches/tbaeyens/modules/config/src/main/config/jboss/datasource/jbpm-oracle-ds.xml	2009-02-26 11:11:30 UTC (rev 4044)
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- ===================================================================== -->
+<!--                                                                       -->
+<!--  JBoss Server Configuration                                           -->
+<!--                                                                       -->
+<!-- ===================================================================== -->
+
+<!-- $Id$ -->
+
+<!-- ===================================================================== -->
+<!-- ATTENTION:  DO NOT FORGET TO SET Pad=true IN transaction-service.xml  -->
+<!-- ===================================================================== -->
+
+<datasources>
+  <xa-datasource>
+    <jndi-name>JbpmDS</jndi-name>
+    <!-- uncomment to enable interleaving <interleaving/> -->
+    <isSameRM-override-value>false</isSameRM-override-value>
+    <xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class>
+    <xa-datasource-property name="URL">${jdbc.oracle.url}</xa-datasource-property>
+    <xa-datasource-property name="User">${jdbc.oracle.username}</xa-datasource-property>
+    <xa-datasource-property name="Password">${jdbc.oracle.password}</xa-datasource-property>
+    <!-- Uses the pingDatabase method to check a connection is still valid before handing it out from the pool -->
+    <!--valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name-->
+    <!-- Checks the Oracle error codes and messages for fatal errors -->
+    <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
+    <!-- Oracles XA datasource cannot reuse a connection outside a transaction once enlisted in a global transaction and vice-versa -->
+    <no-tx-separate-pools/>
+
+      <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
+      <metadata>
+         <type-mapping>Oracle9i</type-mapping>
+      </metadata>
+  </xa-datasource>
+
+  <mbean code="org.jboss.resource.adapter.jdbc.vendor.OracleXAExceptionFormatter" 
+         name="jboss.jca:service=OracleXAExceptionFormatter">
+    <depends optional-attribute-name="TransactionManagerService">jboss:service=TransactionManager</depends>
+  </mbean>
+
+</datasources>


Property changes on: jbpm4/branches/tbaeyens/modules/config/src/main/config/jboss/datasource/jbpm-oracle-ds.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbpm4/branches/tbaeyens/modules/config/src/main/config/jboss/datasource/jbpm-postgresql-ds.xml
===================================================================
--- jbpm4/branches/tbaeyens/modules/config/src/main/config/jboss/datasource/jbpm-postgresql-ds.xml	                        (rev 0)
+++ jbpm4/branches/tbaeyens/modules/config/src/main/config/jboss/datasource/jbpm-postgresql-ds.xml	2009-02-26 11:11:30 UTC (rev 4044)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<datasources>
+
+  <xa-datasource>
+    <jndi-name>JbpmDS</jndi-name>
+
+    <xa-datasource-class>org.postgresql.xa.PGXADataSource</xa-datasource-class>
+    <xa-datasource-property name="ServerName">${jdbc.postgresql.server}</xa-datasource-property>
+    <xa-datasource-property name="PortNumber">${jdbc.postgresql.port}</xa-datasource-property>
+    <xa-datasource-property name="DatabaseName">${jdbc.postgresql.database}</xa-datasource-property>
+    <user-name>${jdbc.postgresql.username}</user-name>
+    <password>${jdbc.postgresql.password}</password>
+
+    <!-- disable transaction interleaving -->
+    <track-connection-by-tx />
+
+    <!-- corresponding type-mapping in conf/standardjbosscmp-jdbc.xml -->
+    <metadata>
+      <type-mapping>PostgreSQL 8.0</type-mapping>
+    </metadata>
+  </xa-datasource>
+
+</datasources>


Property changes on: jbpm4/branches/tbaeyens/modules/config/src/main/config/jboss/datasource/jbpm-postgresql-ds.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbpm4/branches/tbaeyens/modules/config/src/main/config/jboss/datasource/jbpm-sybase-ds.xml
===================================================================
--- jbpm4/branches/tbaeyens/modules/config/src/main/config/jboss/datasource/jbpm-sybase-ds.xml	                        (rev 0)
+++ jbpm4/branches/tbaeyens/modules/config/src/main/config/jboss/datasource/jbpm-sybase-ds.xml	2009-02-26 11:11:30 UTC (rev 4044)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<datasources>
+
+  <xa-datasource>
+    <jndi-name>JbpmDS</jndi-name>
+    
+    <xa-datasource-class>${jdbc.sybase.datasource}</xa-datasource-class>
+    <xa-datasource-property name="ServerName">${jdbc.sybase.server}</xa-datasource-property>
+    <xa-datasource-property name="PortNumber">${jdbc.sybase.port}</xa-datasource-property>
+    <xa-datasource-property name="DatabaseName">${jdbc.sybase.database}</xa-datasource-property>
+    <user-name>${jdbc.sybase.username}</user-name>
+    <password>${jdbc.sybase.password}</password>
+
+    <!-- disable transaction interleaving -->
+    <track-connection-by-tx />
+
+    <exception-sorter-class-name>
+      org.jboss.resource.adapter.jdbc.vendor.SybaseExceptionSorter
+    </exception-sorter-class-name>
+
+    <!-- corresponding type-mapping in conf/standardjbosscmp-jdbc.xml -->
+    <metadata>
+      <type-mapping>Sybase</type-mapping>
+    </metadata>
+  </xa-datasource>
+
+</datasources>


Property changes on: jbpm4/branches/tbaeyens/modules/config/src/main/config/jboss/datasource/jbpm-sybase-ds.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbpm4/branches/tbaeyens/modules/config/src/main/config/jbpm/part1.jbpm.cfg.xml
===================================================================
--- jbpm4/branches/tbaeyens/modules/config/src/main/config/jbpm/part1.jbpm.cfg.xml	                        (rev 0)
+++ jbpm4/branches/tbaeyens/modules/config/src/main/config/jbpm/part1.jbpm.cfg.xml	2009-02-26 11:11:30 UTC (rev 4044)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<jbpm-configuration xmlns="http://jbpm.org/xsd/cfg">
+
+  <process-engine-context>
+  
+    <process-service />
+    <execution-service />
+    <history-service />
+    <management-service />
+    <identity-service />
+    <task-service />
+  
+    <command-service>
+      <retry-interceptor />
+      <environment-interceptor />
+      <standard-transaction-interceptor />
+    </command-service>
+    
+    <hibernate-configuration>     


Property changes on: jbpm4/branches/tbaeyens/modules/config/src/main/config/jbpm/part1.jbpm.cfg.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbpm4/branches/tbaeyens/modules/config/src/main/config/jbpm/part2.jbpm.cfg.xml
===================================================================
--- jbpm4/branches/tbaeyens/modules/config/src/main/config/jbpm/part2.jbpm.cfg.xml	                        (rev 0)
+++ jbpm4/branches/tbaeyens/modules/config/src/main/config/jbpm/part2.jbpm.cfg.xml	2009-02-26 11:11:30 UTC (rev 4044)
@@ -0,0 +1,53 @@
+      <cache-configuration resource="jbpm.pvm.cache.xml" 
+                           usage="nonstrict-read-write" />
+    </hibernate-configuration>
+
+    <hibernate-session-factory />
+
+    <deployer-manager>
+      <assign-file-type>
+        <file extension=".jpdl.xml" type="jpdl" />
+      </assign-file-type>
+      <parse-jpdl />
+      <check-process />
+      <check-problems />
+      <save />
+    </deployer-manager>
+
+    <script-manager default-expression-language="juel"
+                    default-script-language="juel"
+                    read-contexts="execution, environment, process-engine"
+                    write-context="">
+        <script-language name="juel" factory="com.sun.script.juel.JuelScriptEngineFactory" />
+    </script-manager>
+
+    <job-executor auto-start="false" />
+    <job-test-helper />
+
+    <id-generator />
+    <types resource="jbpm.pvm.types.xml" />
+
+    <business-calendar>
+      <monday    hours="9:00-12:00 and 12:30-17:00"/>
+      <tuesday   hours="9:00-12:00 and 12:30-17:00"/>
+      <wednesday hours="9:00-12:00 and 12:30-17:00"/>
+      <thursday  hours="9:00-12:00 and 12:30-17:00"/>
+      <friday    hours="9:00-12:00 and 12:30-17:00"/>
+      <holiday period="01/07/2008 - 31/08/2008"/>
+    </business-calendar>
+  
+  </process-engine-context>
+
+  <transaction-context>
+    <hibernate-session />
+    <transaction />
+    <pvm-db-session />
+    <job-db-session />
+    <task-db-session />
+    <message-session />
+    <timer-session />
+    <history-session />
+    <identity-session realm="realm://jbpm-identity" />
+  </transaction-context>
+
+</jbpm-configuration>


Property changes on: jbpm4/branches/tbaeyens/modules/config/src/main/config/jbpm/part2.jbpm.cfg.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Deleted: jbpm4/branches/tbaeyens/modules/config/src/main/resources/hibernate.cfg.xml
===================================================================
--- jbpm4/branches/tbaeyens/modules/config/src/main/resources/hibernate.cfg.xml	2009-02-26 11:08:54 UTC (rev 4043)
+++ jbpm4/branches/tbaeyens/modules/config/src/main/resources/hibernate.cfg.xml	2009-02-26 11:11:30 UTC (rev 4044)
@@ -1,21 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-
-<!DOCTYPE hibernate-configuration PUBLIC
-          "-//Hibernate/Hibernate Configuration DTD 2.0//EN"
-          "http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd">
-
-<hibernate-configuration>
-
-  <session-factory>
-    <mapping resource="jbpm.pvm.typedefs.hbm.xml" />
-    <mapping resource="jbpm.pvm.wire.hbm.xml" />
-    <mapping resource="jbpm.pvm.definition.hbm.xml" />
-    <mapping resource="jbpm.pvm.execution.hbm.xml" />
-    <mapping resource="jbpm.pvm.variable.hbm.xml" />
-    <mapping resource="jbpm.pvm.job.hbm.xml" />
-    <mapping resource="jbpm.pvm.history.hbm.xml" />
-    <mapping resource="jbpm.task.hbm.xml" />
-    <mapping resource="jbpm.jpdl.hbm.xml" />
-  </session-factory>
-
-</hibernate-configuration>
\ No newline at end of file

Deleted: jbpm4/branches/tbaeyens/modules/config/src/main/resources/hibernate.properties
===================================================================
--- jbpm4/branches/tbaeyens/modules/config/src/main/resources/hibernate.properties	2009-02-26 11:08:54 UTC (rev 4043)
+++ jbpm4/branches/tbaeyens/modules/config/src/main/resources/hibernate.properties	2009-02-26 11:11:30 UTC (rev 4044)
@@ -1,8 +0,0 @@
-hibernate.dialect=org.hibernate.dialect.HSQLDialect
-hibernate.connection.driver_class=org.hsqldb.jdbcDriver
-hibernate.connection.url=jdbc:hsqldb:mem:.
-hibernate.connection.username=sa
-hibernate.connection.password=
-hibernate.hbm2ddl.auto=create-drop
-hibernate.cache.use_second_level_cache=true
-hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider

Modified: jbpm4/branches/tbaeyens/modules/test-db/pom.xml
===================================================================
--- jbpm4/branches/tbaeyens/modules/test-db/pom.xml	2009-02-26 11:08:54 UTC (rev 4043)
+++ jbpm4/branches/tbaeyens/modules/test-db/pom.xml	2009-02-26 11:11:30 UTC (rev 4044)
@@ -37,6 +37,13 @@
 
     <dependency>
       <groupId>org.jbpm.jbpm4</groupId>
+      <artifactId>jbpm-config</artifactId>
+      <version>${version}</version>
+      <scope>test</scope>
+    </dependency>
+
+    <dependency>
+      <groupId>org.jbpm.jbpm4</groupId>
       <artifactId>jbpm-test-base</artifactId>
       <version>${version}</version>
     </dependency>

Modified: jbpm4/branches/tbaeyens/pom.xml
===================================================================
--- jbpm4/branches/tbaeyens/pom.xml	2009-02-26 11:08:54 UTC (rev 4043)
+++ jbpm4/branches/tbaeyens/pom.xml	2009-02-26 11:11:30 UTC (rev 4044)
@@ -31,8 +31,9 @@
 
   <!-- Modules -->
   <modules>
+    <module>modules/api</module>
+    <module>modules/config</module>
     <module>modules/log</module>
-    <module>modules/api</module>
     <module>modules/pvm</module>
     <module>modules/examples</module>
     <module>modules/jpdl</module>
@@ -388,6 +389,18 @@
 
   <!-- Profiles -->
   <profiles>
+  
+    <profile>
+      <id>all</id>
+      <modules>
+        <module>modules/db</module>
+        <module>modules/devguide</module>
+        <module>modules/distro</module>
+        <module>modules/integration</module>
+        <module>modules/test-load</module>
+        <module>modules/userguide</module>
+      </modules>
+    </profile>
 
     <profile>
       <id>distro</id>




More information about the jbpm-commits mailing list