[jbpm-commits] JBoss JBPM SVN: r4720 - jbpm4/branches/ainze/modules/pvm/src/test/resources/org/jbpm/pvm/spring.

do-not-reply at jboss.org do-not-reply at jboss.org
Mon May 4 17:00:45 EDT 2009


Author: ainze
Date: 2009-05-04 17:00:45 -0400 (Mon, 04 May 2009)
New Revision: 4720

Added:
   jbpm4/branches/ainze/modules/pvm/src/test/resources/org/jbpm/pvm/spring/applicationContext.xml
   jbpm4/branches/ainze/modules/pvm/src/test/resources/org/jbpm/pvm/spring/jbpm.cfg.xml
Removed:
   jbpm4/branches/ainze/modules/pvm/src/test/resources/org/jbpm/pvm/spring/spring.beans.xml
Log:
initial working release

Added: jbpm4/branches/ainze/modules/pvm/src/test/resources/org/jbpm/pvm/spring/applicationContext.xml
===================================================================
--- jbpm4/branches/ainze/modules/pvm/src/test/resources/org/jbpm/pvm/spring/applicationContext.xml	                        (rev 0)
+++ jbpm4/branches/ainze/modules/pvm/src/test/resources/org/jbpm/pvm/spring/applicationContext.xml	2009-05-04 21:00:45 UTC (rev 4720)
@@ -0,0 +1,36 @@
+<?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="configuration" class="org.jbpm.spring.cfg.SpringConfigurationFactoryBean">
+		<property name="jbpmConfigurationLocation" value="org/jbpm/spring/test/jbpm.cfg.xml" />
+	</bean>
+-->
+
+	<bean id="testSF" 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="testSF" />
+		<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/pvm/src/test/resources/org/jbpm/pvm/spring/applicationContext.xml
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: jbpm4/branches/ainze/modules/pvm/src/test/resources/org/jbpm/pvm/spring/jbpm.cfg.xml
===================================================================
--- jbpm4/branches/ainze/modules/pvm/src/test/resources/org/jbpm/pvm/spring/jbpm.cfg.xml	                        (rev 0)
+++ jbpm4/branches/ainze/modules/pvm/src/test/resources/org/jbpm/pvm/spring/jbpm.cfg.xml	2009-05-04 21:00:45 UTC (rev 4720)
@@ -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/pvm/src/test/resources/org/jbpm/pvm/spring/jbpm.cfg.xml
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Deleted: jbpm4/branches/ainze/modules/pvm/src/test/resources/org/jbpm/pvm/spring/spring.beans.xml
===================================================================
--- jbpm4/branches/ainze/modules/pvm/src/test/resources/org/jbpm/pvm/spring/spring.beans.xml	2009-05-04 20:12:55 UTC (rev 4719)
+++ jbpm4/branches/ainze/modules/pvm/src/test/resources/org/jbpm/pvm/spring/spring.beans.xml	2009-05-04 21:00:45 UTC (rev 4720)
@@ -1,76 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<beans xmlns="http://www.springframework.org/schema/beans"
-       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
-       
-  <!-- SINGLETONS
-    SpringEnvironmentFactory will only see the singleton beans.  
-  -->       
-
-  <bean id="processService" 
-        class="org.jbpm.pvm.internal.svc.ProcessServiceImpl"
-        scope="singleton">
-    <property name="commandService" ref="commandService" />
-  </bean>
-       
-  <bean id="commandService" 
-        class="org.jbpm.pvm.internal.spring.SpringCommandService"
-        scope="singleton">
-    <property name="transactionManager" ref="transactionManager" />
-    <property name="environmentFactory" ref="environmentFactory"/>
-  </bean>
-  
-  <bean id="transactionManager" 
-        class="org.springframework.orm.hibernate3.HibernateTransactionManager"
-        scope="singleton">
-    <property name="sessionFactory" ref="sessionFactory"/>
-  </bean>
-
-  <bean id="environmentFactory" 
-        class="org.jbpm.pvm.internal.cfg.SpringConfiguration"
-        scope="singleton" />
-
-  <bean id="sessionFactory" 
-        class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"
-        scope="singleton">
-    <property name="mappingResources">
-      <list>
-        <value>jbpm.pvm.typedefs.hbm.xml</value>
-        <value>jbpm.pvm.wire.hbm.xml</value>
-        <value>jbpm.pvm.definition.hbm.xml</value>
-        <value>jbpm.pvm.execution.hbm.xml</value>
-        <value>jbpm.pvm.variable.hbm.xml</value>
-        <value>jbpm.pvm.job.hbm.xml</value>
-      </list>
-    </property>
-    <property name="hibernateProperties"><value>
-      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
-    </value></property>
-  </bean>
-  
-  <bean id="hibernateSessionManager" 
-        class="org.jbpm.pvm.internal.spring.HibernateSessionManager" 
-        scope="singleton">
-    <property name="sessionFactory" ref="sessionFactory" />
-  </bean>
-  
-  <!-- PROTOTYPES
-    The PVM environment scope will only see prototype beans.
-    Each environment will cache the prototype beans that are fetched 
-    through it.
-  -->       
-
-  <bean id="session" 
-        factory-bean="hibernateSessionManager" 
-        factory-method="getSession" 
-        scope="prototype" />
-
-</beans>
\ No newline at end of file




More information about the jbpm-commits mailing list