Przeglądaj źródła

git-svn-id: https://192.168.57.71/svn/jsgkj@1027 931142cf-59ea-a443-aa0e-51397b428577

xt_yuanxd 8 lat temu
rodzic
commit
7042ddddcc

+ 69 - 0
gkaqv2/trunk/modules/web/src/main/resources/spring/spring-workflow.xml

@@ -0,0 +1,69 @@
+<?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:context="http://www.springframework.org/schema/context"
+	   xmlns:aop="http://www.springframework.org/schema/aop" xmlns:p="http://www.springframework.org/schema/p"
+	   xsi:schemaLocation="http://www.springframework.org/schema/beans
+	http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
+	http://www.springframework.org/schema/context 
+	http://www.springframework.org/schema/context/spring-context-3.0.xsd
+	http://www.springframework.org/schema/aop
+	http://www.springframework.org/schema/aop/spring-aop-3.0.xsd">
+	<bean id="workflowDS" class="com.xt.js.gkaq.web.system.DataSourceFactory" init-method="init" destroy-method="close">
+		<property name="properties" value="classpath:/spring/workflowDS.properties" />
+		<property name="dsType" value="com.alibaba.druid.pool.DruidDataSource"></property>
+	</bean>
+	<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
+		<property name="dataSource" ref="workflowDS" />
+		<property name="transactionManager" ref="transactionManager" />
+		<property name="databaseSchemaUpdate" value="" />
+		<property name="jobExecutorActivate" value="false" />
+		<property name="history" value="full" />
+		<property name="deploymentResources">
+			<list>
+					<!--
+					<value>classpath*:/deployments/*</value> 
+					<value>classpath*:/deployments/bgzysbsp-city.*</value>
+					<value>classpath*:/deployments/qxzysbsp-city.*</value>
+					<value>classpath*:/deployments/autoAudit.*</value>
+					<value>classpath*:/deployments/jyrUser.*</value>
+					<value>classpath*:/deployments/aqyssc-*</value>
+					<value>classpath*:/deployments/jsxmaqtjsc-*</value>
+					<value>classpath*:/deployments/whzyfzsq-city.*</value>
+					<value>classpath*:/deployments/aqsszxyssc-city.*</value>
+					<value>classpath*:/deployments/aqpjbgjzgfa-city.*</value>
+					<value>classpath*:/deployments/aqpjjgba-*</value>
+					<value>classpath*:/deployments/jdhxpyjzdwxy-city.*</value>
+					<value>classpath*:/deployments/yjyaba-city.*</value>
+					<value>classpath*:/deployments/zdsgyhpc-city.*</value>
+					<value>classpath*:/deployments/zysbsp-city.*</value>
+					<value>classpath*:/deployments/jdjc.*</value>
+				-->
+			</list>
+		</property>
+		<property name="customSessionFactories">
+			<list>
+				<bean class="com.xt.js.gkaq.frame.wf.MyUserEntityManagerFactory" />
+				<bean class="com.xt.js.gkaq.frame.wf.MyGroupEntityManagerFactory"/>
+			</list>
+		</property>
+	</bean>
+	<bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean">
+		<property name="processEngineConfiguration" ref="processEngineConfiguration" />
+	</bean>
+
+	<bean id="repositoryService" factory-bean="processEngine"
+		  factory-method="getRepositoryService" />
+	<bean id="runtimeService" factory-bean="processEngine"
+		  factory-method="getRuntimeService" />
+	<bean id="formService" factory-bean="processEngine"
+		  factory-method="getFormService" />
+	<bean id="identityService" factory-bean="processEngine"
+		  factory-method="getIdentityService" />
+	<bean id="taskService" factory-bean="processEngine"
+		  factory-method="getTaskService" />
+	<bean id="historyService" factory-bean="processEngine"
+		  factory-method="getHistoryService" />
+	<bean id="managementService" factory-bean="processEngine"
+		  factory-method="getManagementService" />
+
+</beans>

+ 19 - 0
gkaqv2/trunk/modules/web/src/main/resources/spring/workflowDS.properties

@@ -0,0 +1,19 @@
+url=jdbc:oracle:thin:@192.168.57.36:1521:orcl
+#url=jdbc:h2:~/oa;AUTO_SERVER=TRUE
+#driverClassName=org.h2.Driver
+username=gkaqwf
+password=gkaqwf
+#druid datasource
+initialSize=10
+minIdle=10
+maxActive=50
+maxWait=60000
+timeBetweenEvictionRunsMillis=60000
+minEvictableIdleTimeMillis=300000
+validationQuery=SELECT 1 from dual
+testWhileIdle=true
+testOnBorrow=false
+testOnReturn=false
+poolPreparedStatements=true
+maxPoolPreparedStatementPerConnectionSize=20
+filters=wall,stat,config