[jbpm-commits] JBoss JBPM SVN: r4737 - in jbpm4/branches/ainze: modules/test-db/src/test/resources/org/jbpm/test and 1 other directories.

do-not-reply at jboss.org do-not-reply at jboss.org
Tue May 5 16:30:47 EDT 2009


Author: ainze
Date: 2009-05-05 16:30:47 -0400 (Tue, 05 May 2009)
New Revision: 4737

Added:
   jbpm4/branches/ainze/modules/test-db/src/test/resources/org/jbpm/test/spring/
   jbpm4/branches/ainze/modules/test-db/src/test/resources/org/jbpm/test/spring/applicationContext.xml
   jbpm4/branches/ainze/modules/test-db/src/test/resources/org/jbpm/test/spring/jbpm.cfg.xml
Modified:
   jbpm4/branches/ainze/pom.xml
Log:
fixed tests of test-db

Added: jbpm4/branches/ainze/modules/test-db/src/test/resources/org/jbpm/test/spring/applicationContext.xml
===================================================================
--- jbpm4/branches/ainze/modules/test-db/src/test/resources/org/jbpm/test/spring/applicationContext.xml	                        (rev 0)
+++ jbpm4/branches/ainze/modules/test-db/src/test/resources/org/jbpm/test/spring/applicationContext.xml	2009-05-05 20:30:47 UTC (rev 4737)
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xmlns:aop="http://www.springframework.org/schema/aop" xmlns:context="http://www.springframework.org/schema/context"
+	xmlns:tx="http://www.springframework.org/schema/tx"
+	xsi:schemaLocation="
+        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
+        http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
+        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
+        http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
+
+	<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
+		<property name="configLocation" value="classpath:jbpm.hibernate.cfg.xml" />
+		<!-- A best practice should be to keep split the config into multiple files
+			<property name="configLocations" value="hibernate.cfg.xml, hibernate.jbpm.cfg.xml" />
+		 -->
+	</bean>
+
+	<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
+		<property name="sessionFactory" ref="sessionFactory" />
+		<property name="dataSource" ref="dataSource" />
+	</bean>
+
+	<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
+		<property name="driverClassName" value="org.hsqldb.jdbcDriver" />
+		<property name="url" value="jdbc:hsqldb:mem:." />
+		<property name="username" value="sa" />
+		<property name="password" value="" />
+	</bean>
+</beans>
\ No newline at end of file


Property changes on: jbpm4/branches/ainze/modules/test-db/src/test/resources/org/jbpm/test/spring/applicationContext.xml
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: jbpm4/branches/ainze/modules/test-db/src/test/resources/org/jbpm/test/spring/jbpm.cfg.xml
===================================================================
--- jbpm4/branches/ainze/modules/test-db/src/test/resources/org/jbpm/test/spring/jbpm.cfg.xml	                        (rev 0)
+++ jbpm4/branches/ainze/modules/test-db/src/test/resources/org/jbpm/test/spring/jbpm.cfg.xml	2009-05-05 20:30:47 UTC (rev 4737)
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<jbpm-configuration xmlns="http://jbpm.org/xsd/cfg">
+
+  <process-engine-context>
+  
+    <repository-service />
+    <repository-cache />
+    <execution-service />
+    <history-service />
+    <management-service />
+    <task-service />
+    <identity-service />
+    <command-service>
+      <retry-interceptor />
+      <environment-interceptor />
+      <spring-transaction-interceptor />
+    </command-service>
+    
+    <hibernate-configuration>
+      <cfg resource="jbpm.hibernate.cfg.xml" />     
+    </hibernate-configuration>
+
+    <deployer-manager>
+      <jpdl-deployer />
+    </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="org.jbpm.pvm.internal.script.JuelScriptEngineFactory" />
+    </script-manager>
+    
+    <authentication />
+
+    <job-executor auto-start="false" />
+
+    <id-generator />
+    <types resource="jbpm.variable.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>
+    <repository-session />
+    <pvm-db-session />
+    <job-db-session />
+    <task-db-session />
+    <message-session />
+    <timer-session />
+    <history-session />
+    <hibernate-session />
+    <transaction /> 
+    <identity-session />
+  </transaction-context>
+
+</jbpm-configuration>


Property changes on: jbpm4/branches/ainze/modules/test-db/src/test/resources/org/jbpm/test/spring/jbpm.cfg.xml
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Modified: jbpm4/branches/ainze/pom.xml
===================================================================
--- jbpm4/branches/ainze/pom.xml	2009-05-05 20:16:08 UTC (rev 4736)
+++ jbpm4/branches/ainze/pom.xml	2009-05-05 20:30:47 UTC (rev 4737)
@@ -39,7 +39,6 @@
     <module>modules/examples</module>
     <module>modules/test-db</module>
     <module>modules/test-pojo</module>
-	<module>modules/test-spring</module>
   </modules>
 
   <!-- Properties -->




More information about the jbpm-commits mailing list