applicationContext.xml


<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" 
"http&#58;//www.springframework.org/dtd/spring-beans.dtd">



<beans>



&nbsp; &nbsp; <!-- ========================= GENERAL DEFINITIONS 
========================= -->



&nbsp; &nbsp; <!-- Message source for this context, loaded from localized 
"messages_xx" files -->

&nbsp; &nbsp; <bean id="messageSource" 
class="org.springframework.context.support.ResourceBundleMessageSource">

&nbsp; &nbsp; &nbsp; &nbsp; <property 
name="basename"><value>messages</value></property>

&nbsp; &nbsp; </bean>



&nbsp; &nbsp; <!-- applicationContext merge-point -->



&nbsp; &nbsp; <!-- Hibernate SessionFactory -->

&nbsp; &nbsp; <bean id="sessionFactory" 
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">

&nbsp; &nbsp; &nbsp; &nbsp; <property name="dataSource"><ref 
bean="dataSource"/></property>

&nbsp; &nbsp; &nbsp; &nbsp; <property name="mappingResources">

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <list>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
<value>be/fgov/caami/dmfa/business/objects/Member.hbm.xml</value>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
<value>be/fgov/caami/dmfa/support/officer/Role.hbm.xml</value>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
<value>be/fgov/caami/dmfa/support/desktop/Desktop.hbm.xml</value>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
<value>be/fgov/caami/dmfa/business/objects/EmployerChoiceForDRS.hbm.xml</value>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
<value>be/fgov/caami/dmfa/support/officer/AccessRight.hbm.xml</value>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
<value>be/fgov/caami/dmfa/business/objects/IllnessFile.hbm.xml</value>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
<value>be/fgov/caami/dmfa/support/officer/Officer.hbm.xml</value>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
<value>be/fgov/caami/dmfa/support/officer/OperationSet.hbm.xml</value>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
<value>be/fgov/caami/dmfa/support/officer/RegionalOffice.hbm.xml</value>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
<value>be/fgov/caami/dmfa/business/objects/ReferencePeriodQuarter.hbm.xml</value>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
<value>be/fgov/caami/dmfa/business/objects/Document.hbm.xml</value>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </list>

&nbsp; &nbsp; &nbsp; &nbsp; </property>

&nbsp; &nbsp; &nbsp; &nbsp; <property name="hibernateProperties">

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <props>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <prop 
key="hibernate.show_sql">true</prop>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <prop 
key="hibernate.dialect">org.hibernate.dialect.HSQLDialect</prop>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <prop 
key="hibernate.cache.use_query_cache">false</prop>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <prop 
key="hibernate.cache.provider_class">org.hibernate.cache.EhCacheProvider</prop>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <prop 
key="hibernate.cache.query_cache_factory">org.hibernate.cache.StandardQueryCacheFactory</prop>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </props>

&nbsp; &nbsp; &nbsp; &nbsp; </property>

&nbsp; &nbsp; </bean>



&nbsp; &nbsp; <!-- The Hibernate interceptor -->

&nbsp; &nbsp; <bean id="hibernateInterceptor" 
class="org.springframework.orm.hibernate3.HibernateInterceptor">

&nbsp; &nbsp; &nbsp; &nbsp; <property name="sessionFactory"><ref 
bean="sessionFactory"/></property>

&nbsp; &nbsp; </bean>



... --8<-----8<-----8<--...







and applicationContext-dataSource.xml



<?xml version="1.0" encoding="UTF-8"?>



<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" 
"http&#58;//www.springframework.org/dtd/spring-beans.dtd">



<beans>



&nbsp; &nbsp; <!-- ========================= DATASOURCE DEFINITION 
========================= -->



&nbsp; &nbsp; <!-- JNDI DataSource for J2EE environments -->

&nbsp; &nbsp; <bean id="dataSource" 
class="org.springframework.jndi.JndiObjectFactoryBean">

&nbsp; &nbsp; &nbsp; &nbsp; <property 
name="jndiName"><value>java&#58;/DefaultDS</value></property>

&nbsp; &nbsp; </bean>

&nbsp; &nbsp; 

&nbsp; &nbsp; <!-- ====================== End of DATASOURCE DEFINITION 
====================== -->



&nbsp; &nbsp; <!-- ===================== TRANSACTION MANAGER DEFINITION 
========================= -->



&nbsp; &nbsp; <bean id="transactionManager" 
class="org.springframework.transaction.jta.JtaTransactionManager">

&nbsp; &nbsp; </bean>



&nbsp; &nbsp; <!-- ===================== 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

Reply via email to