12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <?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-3.0.xsd">
- <!-- 数据源 -->
- <bean id="UAS_MES" class="com.alibaba.druid.pool.DruidDataSource" destroy-method="close">
- <property name="driverClassName">
- <value>oracle.jdbc.driver.OracleDriver</value>
- </property>
- <property name="url">
- <value>jdbc:oracle:thin:@usoft.f3322.net:11618:orcl</value>
- </property>
- <property name="username">
- <value>UAS_MES</value>
- </property>
- <property name="password" value="select!#%*(" />
- </bean>
- <!-- 将需要用到的多个帐套的dataSource定义在此,再通过multiDataSource切换 -->
- <bean id="dataSource" class="com.uas.mes.core.data.MultiDataSource">
- <property name="dataSource">
- <ref bean="#{about.defaultSob}" />
- </property>
- <!-- 配置connectTimeout 和 socketTimeout (防止发生网络异常时,spring jdbcTemplate无法捕捉,可能无限等待) -->
- <property name="connectionProperties"
- value="oracle.net.CONNECT_TIMEOUT=6000;oracle.jdbc.ReadTimeout=6000" />
- </bean>
- <!-- 操作LOB 数据 -->
- <bean id="lobHandler" class="org.springframework.jdbc.support.lob.DefaultLobHandler"
- lazy-init="true" />
- <!-- jbpm配置文件 -->
- <bean id="springHelper" class="org.jbpm.pvm.internal.processengine.SpringHelper">
- <property name="jbpmCfg" value="jbpm.cfg.xml"></property>
- </bean>
- <bean id="processEngine" factory-bean="springHelper"
- factory-method="createProcessEngine">
- </bean>
- <bean id="repositoryService" factory-bean="processEngine"
- factory-method="getRepositoryService" />
- <bean id="executionService" factory-bean="processEngine"
- factory-method="getExecutionService" />
- <bean id="historyService" factory-bean="processEngine"
- factory-method="getHistoryService" />
- <bean id="managementService" factory-bean="processEngine"
- factory-method="getManagementService" />
- <bean id="identityService" factory-bean="processEngine"
- factory-method="getIdentityService" />
- <bean id="taskService" factory-bean="processEngine"
- factory-method="getTaskService" />
- <bean id="sessionFactory"
- class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
- <property name="dataSource" ref="#{about.defaultSob}" />
- <property name="hibernateProperties">
- <props>
- <prop key="hibernate.dialect">org.hibernate.dialect.OracleDialect</prop>
- <prop key="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</prop>
- <prop key="hibernate.format_sql">true</prop>
- </props>
- </property>
- <property name="mappingResources">
- <list>
- <value>jbpm.repository.hbm.xml</value>
- <value>jbpm.execution.hbm.xml</value>
- <value>jbpm.history.hbm.xml</value>
- <value>jbpm.task.hbm.xml</value>
- <value>jbpm.identity.hbm.xml</value>
- </list>
- </property>
- </bean>
- </beans>
|