applicationContext.xml
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> <beans> <!-- ========================= GENERAL DEFINITIONS ========================= --> <!-- Message source for this context, loaded from localized "messages_xx" files --> <bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource"> <property name="basename"><value>messages</value></property> </bean> <!-- applicationContext merge-point --> <!-- Hibernate SessionFactory --> <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> <property name="dataSource"><ref bean="dataSource"/></property> <property name="mappingResources"> <list> <value>be/fgov/caami/dmfa/business/objects/Member.hbm.xml</value> <value>be/fgov/caami/dmfa/support/officer/Role.hbm.xml</value> <value>be/fgov/caami/dmfa/support/desktop/Desktop.hbm.xml</value> <value>be/fgov/caami/dmfa/business/objects/EmployerChoiceForDRS.hbm.xml</value> <value>be/fgov/caami/dmfa/support/officer/AccessRight.hbm.xml</value> <value>be/fgov/caami/dmfa/business/objects/IllnessFile.hbm.xml</value> <value>be/fgov/caami/dmfa/support/officer/Officer.hbm.xml</value> <value>be/fgov/caami/dmfa/support/officer/OperationSet.hbm.xml</value> <value>be/fgov/caami/dmfa/support/officer/RegionalOffice.hbm.xml</value> <value>be/fgov/caami/dmfa/business/objects/ReferencePeriodQuarter.hbm.xml</value> <value>be/fgov/caami/dmfa/business/objects/Document.hbm.xml</value> </list> </property> <property name="hibernateProperties"> <props> <prop key="hibernate.show_sql">true</prop> <prop key="hibernate.dialect">org.hibernate.dialect.HSQLDialect</prop> <prop key="hibernate.cache.use_query_cache">false</prop> <prop key="hibernate.cache.provider_class">org.hibernate.cache.EhCacheProvider</prop> <prop key="hibernate.cache.query_cache_factory">org.hibernate.cache.StandardQueryCacheFactory</prop> </props> </property> </bean> <!-- The Hibernate interceptor --> <bean id="hibernateInterceptor" class="org.springframework.orm.hibernate3.HibernateInterceptor"> <property name="sessionFactory"><ref bean="sessionFactory"/></property> </bean> ... --8<-----8<-----8<--... and applicationContext-dataSource.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> <beans> <!-- ========================= DATASOURCE DEFINITION ========================= --> <!-- JNDI DataSource for J2EE environments --> <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean"> <property name="jndiName"><value>java:/DefaultDS</value></property> </bean> <!-- ====================== End of DATASOURCE DEFINITION ====================== --> <!-- ===================== TRANSACTION MANAGER DEFINITION ========================= --> <bean id="transactionManager" class="org.springframework.transaction.jta.JtaTransactionManager"> </bean> <!-- ===================== TRANSACTION MANAGER DEFINITION ========================= --> </beans> -- Wouter Zoons - [EMAIL PROTECTED] http://www.andromda.org/ _________________________________________________________ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=2520#2520 Posting to http://forum.andromda.org/ is preferred over posting to the mailing list! ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Andromda-user mailing list Andromda-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-user