UP | HOME

applicationContext.xml

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
   xmlns:context="http://www.springframework.org/schema/context"
   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-2.0.xsd
     http://www.springframework.org/schema/context
     http://www.springframework.org/schema/context/spring-context-2.5.xsd"   
   default-lazy-init="true">

   <import resource="applicationContext-DataSource.xml" />

   <bean id="hibernateTemplate" 
         class="org.springframework.orm.hibernate3.HibernateTemplate">
      <property name="sessionFactory" ref="sessionFactory" />
   </bean>

   <bean id="userDao"
      class="de.botzenhart.testjsf.security.dao.UserDaoImpl"
      scope="singleton">
      <property name="hibernateTemplate" ref="hibernateTemplate" />
   </bean>

   <bean id="userController"
      class="de.botzenhart.testjsf.security.service.UserControllerImpl">
      <constructor-arg ref="userDao" />
   </bean>

   <!-- Add new DAOs here -->

   <!-- Add new Managers here -->
</beans>

Author: Rainer Schuler

Date: 2011-02-11 Fr

HTML generated by org-mode 7.4 in emacs 22