--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+* Copyright Igor Barma, Eric Brun, Alexandre Desoubeaux, Christian Martel,
+* (2 décembre 2008)
+*
+* Ce logiciel est un programme informatique servant à l'évaluation des
+* compétences.
+*
+* Ce logiciel est régi par la licence CeCILL soumise au droit français et
+* respectant les principes de diffusion des logiciels libres. Vous pouvez
+* utiliser, modifier et/ou redistribuer ce programme sous les conditions
+* de la licence CeCILL telle que diffusée par le CEA, le CNRS et l'INRIA
+* sur le site "http://www.cecill.info".
+*
+* En contrepartie de l'accessibilité au code source et des droits de copie,
+* de modification et de redistribution accordés par cette licence, il n'est
+* offert aux utilisateurs qu'une garantie limitée. Pour les mêmes raisons,
+* seule une responsabilité restreinte pèse sur l'auteur du programme, le
+* titulaire des droits patrimoniaux et les concédants successifs.
+*
+* A cet égard l'attention de l'utilisateur est attirée sur les risques
+* associés au chargement, à l'utilisation, à la modification et/ou au
+* développement et à la reproduction du logiciel par l'utilisateur étant
+* donné sa spécificité de logiciel libre, qui peut le rendre complexe à
+* manipuler et qui le réserve donc à des développeurs et des professionnels
+* avertis possédant des connaissances informatiques approfondies. Les
+* utilisateurs sont donc invités à charger et tester l'adéquation du
+* logiciel à leurs besoins dans des conditions permettant d'assurer la
+* sécurité de leurs systèmes et ou de leurs données et, plus généralement,
+* à l'utiliser et l'exploiter dans les mêmes conditions de sécurité.
+*
+* Le fait que vous puissiez accéder à cet en-tête signifie que vous avez
+* pris connaissance de la licence CeCILL, et que vous en avez accepté les
+* termes.
+-->
+
+<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:tx="http://www.springframework.org/schema/tx"
+ xsi:schemaLocation="
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
+ http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
+ http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd">
+
+<description>
+
+Persistance Beans declaration for Hibernate and Mysql.
+
+</description>
+
+
+
+ <!-- Spring bean configuration. Tell Spring to bounce off BoneCP -->
+ <bean id="dataSource"
+ class="org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy">
+ <property name="targetDataSource">
+ <ref local="mainDataSource" />
+ </property>
+ </bean>
+
+ <!-- BoneCP configuration -->
+ <bean id="mainDataSource" class="com.jolbox.bonecp.BoneCPDataSource" destroy-method="close">
+ <property name="driverClass" value="${dbdriver}" />
+ <property name="jdbcUrl" value="${dburl}" />
+ <property name="username" value="${dbuser}"/>
+ <property name="password" value="${dbpassword}"/>
+ <property name="idleConnectionTestPeriod" value="60"/>
+ <property name="idleMaxAge" value="240"/>
+ <property name="maxConnectionsPerPartition" value="60"/>
+ <property name="minConnectionsPerPartition" value="20"/>
+ <property name="partitionCount" value="3"/>
+ <property name="acquireIncrement" value="10"/>
+ <property name="statementsCacheSize" value="50"/>
+ <property name="releaseHelperThreads" value="3"/>
+ </bean>
+
+
+ <!-- Hibernate SessionFactory -->
+ <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean" >
+ <!-- Tell hibernate to use our given datasource -->
+ <property name="dataSource"><ref local="dataSource"/></property>
+
+ <property name="mappingResources">
+ <list>
+ <value>CompetenceInstance.hbm.xml</value>
+ <value>EvaluationDefinition.hbm.xml</value>
+ <value>EvaluationInstance.hbm.xml</value>
+ <value>EvaluationObject.hbm.xml</value>
+ <value>EvaluationSubject.hbm.xml</value>
+ <value>EvaluationSubjectInstance.hbm.xml</value>
+ <value>Entity.hbm.xml</value>
+ <value>EntityDefinition.hbm.xml</value>
+ <value>Methods.hbm.xml</value>
+ <value>ProcessInstanciationDefinition.hbm.xml</value>
+ <value>ProcessRoleDefinition.hbm.xml</value>
+ <value>Property.hbm.xml</value>
+ <value>Ressource.hbm.xml</value>
+ <value>Role.hbm.xml</value>
+ <value>ScenarioDefinition.hbm.xml</value>
+ <value>ScenarioInstance.hbm.xml</value>
+ <value>Message.hbm.xml</value>
+ <value>Acquitment.hbm.xml</value>
+ <value>EventActivity.hbm.xml</value>
+ <value>Event.hbm.xml</value>
+ <value>Plan.hbm.xml</value>
+ <value>Affectation.hbm.xml</value>
+ <value>ScenarioDefinitionPlan.hbm.xml</value>
+ <value>Notification.hbm.xml</value>
+ <value>SystemPreference.hbm.xml</value>
+ <value>DataStore.hbm.xml</value>
+ <value>Examen.hbm.xml</value>
+
+ </list>
+ </property>
+
+ <property name="hibernateProperties">
+ <props>
+ <prop key="hibernate.dialect">${dbdialect}</prop>
+ <prop key="hibernate.hbm2ddl.auto">${hbm2ddl}</prop>
+
+
+
+ <!-- <prop key="hibernate.cache.provider_class">org.hibernate.cache.EhCacheProvider</prop>
+ -->
+ <prop key="hibernate.cache.region.factory_class">net.sf.ehcache.hibernate.SingletonEhCacheRegionFactory</prop>
+ <prop key="hibernate.cache.use_second_level_cache">true</prop>
+ <prop key="hibernate.cache.use_query_cache">true</prop>
+
+ </props>
+ </property>
+ </bean>
+
+
+
+
+
+
+
+
+
+
+
+ <!-- Transaction manager for a single Hibernate SessionFactory (alternative to JTA) -->
+ <bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
+ <description>Transaction Manager for sessionFactory</description>
+ <property name="sessionFactory"><ref local="sessionFactory"/></property>
+ </bean>
+ <!--
+ <bean id="transactionProxy" abstract="true"
+ class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
+ <description>Abstact Transaction Proxy based on Annotation transaction declarations.</description>
+ <property name="transactionManager">
+ <ref bean="transactionManager"/>
+ </property>
+ <property name="transactionAttributeSource">
+ <bean class="org.springframework.transaction.annotation.AnnotationTransactionAttributeSource" />
+ </property>
+
+ </bean>
+
+ -->
+
+ <!--
+ <bean id="registry" class="org.springframework.remoting.rmi.RmiRegistryFactoryBean">
+ <property name="port" value="1099" />
+ </bean>
+ <bean id="statisticsBean" class="org.hibernate.jmx.StatisticsService">
+ <property name="sessionFactory" ref="sessionFactory"/>
+ </bean>
+
+ <bean id="exporter" class="org.springframework.jmx.export.MBeanExporter">
+ <property name="beans">
+ <map>
+ <entry key="bean:name=statistics" value-ref="statisticsBean" />
+ </map>
+ </property>
+ <property name="server" ref="mbeanServer" />
+ </bean>
+
+
+ <bean id="mbeanServer" class="org.springframework.jmx.support.MBeanServerFactoryBean">
+ <property name="locateExistingServerIfPossible" value="true"/>
+
+ </bean>
+
+
+ <bean id="serverConnector" class="org.springframework.jmx.support.ConnectorServerFactoryBean">
+ <property name="objectName" value="connector:name=rmi"/>
+ <property name="serviceUrl" value="service:jmx:rmi://localhost/jndi/rmi://localhost:1099/myconnector"/>
+ <property name="server" ref="mbeanServer" />
+ </bean>
+
+-->
+ \r
+</beans>