Welcome! Here you can paste sources and general debugging text, You can even set yourself a password if you want to keep it just for yourself.

Posted by Anonymous on March Wed 15th 3:39 PM - Never Expires
Download | New paste

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans"
  3.         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4.         xmlns:context="http://www.springframework.org/schema/context"
  5.         xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
  6.                 http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd">
  7.        
  8.         <!-- Root Context: defines shared resources visible to all other web components -->
  9.         <bean id="dao" class="com.proxym.project.dao.PersonneDaoImpl"></bean>   
  10.         <bean id="metier" class="com.proxym.project.metier.PersonneMetierImpl">
  11.         <property name="dao" ref="dao"></property>
  12.         </bean>
  13.         <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
  14.         <property name="driverClassName" value="com.mysql.jdbc.Driver"></property>
  15.         <property name="url" value="root"></property>
  16.         <property name="password" value=""></property>
  17.         </bean>
  18.         <bean id="PersistenceUnitManager" class="org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager">
  19.         <property name="persistenceXmlLocations">
  20.         <list>
  21.          <value>classpath*:META-INF/persistence.xml</value>
  22.         </list>
  23.         </property>
  24.         <property name="defaultDataSource" ref="dataSource"></property>
  25.         </bean>
  26.        
  27.         <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
  28.         <property name="persistenceUnitManager" ref="PersistenceUnitManager"></property>
  29.         <property name="persistenceUnitName" ref="bdproxym"></property>
  30.         </bean>
  31.         <bean name="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
  32.         <property name="entityManagerFactory" ref="entityManagerFactory"></property>
  33.         </bean>
  34.  
  35. </beans>
Language:
To highlight particular lines, prefix each line with @@





Hosted by KanGouLya for OpenTunisia
Donate for OpenTunisia Servers.
Powered by PHPaste 1.1