[jbpm-commits] JBoss JBPM SVN: r4740 - in jbpm4/branches/ainze/modules/examples/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 17:03:35 EDT 2009


Author: ainze
Date: 2009-05-05 17:03:35 -0400 (Tue, 05 May 2009)
New Revision: 4740

Added:
   jbpm4/branches/ainze/modules/examples/src/test/resources/org/jbpm/test/
   jbpm4/branches/ainze/modules/examples/src/test/resources/org/jbpm/test/spring/
   jbpm4/branches/ainze/modules/examples/src/test/resources/org/jbpm/test/spring/applicationContext.xml
   jbpm4/branches/ainze/modules/examples/src/test/resources/org/jbpm/test/spring/jbpm.cfg.xml
Log:
fixed maven build with spring

Added: jbpm4/branches/ainze/modules/examples/src/test/resources/org/jbpm/test/spring/applicationContext.xml
===================================================================
--- jbpm4/branches/ainze/modules/examples/src/test/resources/org/jbpm/test/spring/applicationContext.xml	                        (rev 0)
+++ jbpm4/branches/ainze/modules/examples/src/test/resources/org/jbpm/test/spring/applicationContext.xml	2009-05-05 21:03:35 UTC (rev 4740)
@@ -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/examples/src/test/resources/org/jbpm/test/spring/applicationContext.xml
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: jbpm4/branches/ainze/modules/examples/src/test/resources/org/jbpm/test/spring/jbpm.cfg.xml
===================================================================
--- jbpm4/branches/ainze/modules/examples/src/test/resources/org/jbpm/test/spring/jbpm.cfg.xml	                        (rev 0)
+++ jbpm4/branches/ainze/modules/examples/src/test/resources/org/jbpm/test/spring/jbpm.cfg.xml	2009-05-05 21:03:35 UTC (rev 4740)
@@ -0,0 +1,82 @@
+<?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>
+  
+    <mail-template name="MemoTemplate">
+      <to addresses='dilbert at office, alice at work, dogbert at house' />
+      <subject>bureaucracy</subject>
+      <text>Order http://example.com/order/#{orderId} is stalled.</text>
+    </mail-template>
+    
+  </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 />
+    <mail-session>
+      <mail-server>
+        <session-properties>
+          <property name="mail.smtp.host" value="localhost" />
+          <property name="mail.smtp.port" value="2525" />
+          <property name="mail.from" value="noreply at jbpm.org" />
+        </session-properties>
+      </mail-server>
+    </mail-session>
+  </transaction-context>
+
+
+</jbpm-configuration>


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




More information about the jbpm-commits mailing list