+++ /dev/null
-<?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:tx="http://www.springframework.org/schema/tx" xmlns:jee="http://www.springframework.org/schema/jee"
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
- http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
- http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd
- http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-3.1.xsd">
-
-
- <bean id="vidocProperties" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
- <property name="locations" >
- <list>
- <value>classpath:db.properties</value>
- <value>classpath:ldap.properties</value>
- </list>
- </property>
- <!-- Allow other PropertyPlaceholderConfigurer to run as well -->
- <property name="ignoreUnresolvablePlaceholders" value="true" />
- </bean>
-
- <!-- MODIF pour ANO MultiThreading
- <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
- <property name="driverClassName" value="${jdbc.driver}" />
- <property name="url" value="${jdbc.url}" />
- <property name="username" value="${jdbc.username}" />
- <property name="password" value="${jdbc.password}" />
- <property name="defaultAutoCommit" value="false" />
- </bean> -->
-
- <bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource">
- <property name="driverClass" value="${jdbc.driver}" />
- <property name="jdbcUrl" value="${jdbc.url}" />
- <property name="user" value="${jdbc.username}" />
- <property name="password" value="${jdbc.password}" />
- <property name="initialPoolSize" value="3" />
- <property name="minPoolSize" value="5" />
- <property name="maxPoolSize" value="1000" />
- </bean>
-
- <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
- <property name="dataSource" ref="dataSource" />
- </bean>
-
- <bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
- <property name="dataSource" ref="dataSource" />
- <property name="transactionManager" ref="transactionManager" />
- <property name="databaseSchemaUpdate" value="true" />
- <property name="jobExecutorActivate" value="true" />
- <property name="customFormTypes">
- <list>
- <bean class="org.activiti.explorer.form.UserFormType"/>
- <bean class="org.activiti.explorer.form.ProcessDefinitionFormType"/>
- <bean class="org.activiti.explorer.form.MonthFormType"/>
- <bean class="fr.mbdx.explorer.form.LinkFormType"/>
- <bean class="fr.mbdx.explorer.form.VisaAssigneeFormType"/>
- </list>
- </property>
-
- <!-- AJOUT BULL : Gestion du LDAP -->
- <property name="configurators">
- <list>
- <bean class="org.activiti.ldap.LDAPConfigurator">
- <!-- Server connection params -->
- <property name="server" value="${ldap.server.url}" />
- <property name="port" value="${ldap.server.port}" />
- <property name="user" value="${ldap.server.access.user}" />
- <property name="password" value="${ldap.server.access.credentials}" />
-
- <!-- Configuration necessaire pour synchro AD -->
- <property name="customConnectionParameters">
- <map>
- <entry key="java.naming.referral" value="follow" />
- </map>
- </property>
-
- <!-- Query params -->
- <property name="baseDn" value="${ldap.query.baseDn}" />
- <property name="queryUserByUserId" value="${ldap.query.queryUserByUserId}" />
- <property name="queryUserByFullNameLike" value="${ldap.query.queryUserByFullNameLike}" />
- <property name="queryGroupsForUser" value="${ldap.query.queryGroupsForUser}" />
-
- <!-- Attribute config -->
- <property name="userIdAttribute" value="${ldap.attributes.userId}" />
- <property name="userFirstNameAttribute" value="${ldap.attributes.userFirstName}" />
- <property name="userLastNameAttribute" value="${ldap.attributes.userLastName}" />
- <property name="groupIdAttribute" value="${ldap.attributes.groupId}" />
- <property name="groupNameAttribute" value="${ldap.attributes.groupName}" />
- </bean>
- </list>
- </property>
-
- <!-- Permet de deployer automatiquement les process definis dans les fichiers bar du repertoire WEB-INF/processes Activiti Explorer -->
- <property name="deploymentResources" value="/WEB-INF/processes/*.bar"/>
-
- <property name="mailServerHost" value="${mailServerHost}" />
- <property name="mailServerPort" value="${mailServerPort}" />
- <property name="mailServerDefaultFrom" value="${mailServerDefaultFrom}" />
- </bean>
-
- <bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean" destroy-method="destroy">
- <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="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" />
- <bean id="identityService" factory-bean="processEngine" factory-method="getIdentityService" />
-
- <bean id="activitiLoginHandler" class="org.activiti.explorer.ui.login.DefaultLoginHandler">
- <property name="identityService" ref="identityService" />
- </bean>
-
-</beans>
\ No newline at end of file