Change-Id: I604c02dc849e380f70e2d27fa1f2b30dadcf0776 Former-commit-id:9a7971c872
[formerly9065ebcb65
] [formerly3d2e073dd7
[formerly daef43d8947f690d15f9314f85b8cf31d30c06ab]] Former-commit-id:3d2e073dd7
Former-commit-id:cf7da4b001
54 lines
No EOL
2.3 KiB
XML
54 lines
No EOL
2.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
|
|
xmlns:util="http://www.springframework.org/schema/util" xmlns:tx="http://www.springframework.org/schema/tx"
|
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
|
|
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
|
|
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
|
|
http://www.springframework.org/schema/util
|
|
http://www.springframework.org/schema/util/spring-util-2.5.xsd
|
|
http://www.springframework.org/schema/tx
|
|
http://www.springframework.org/schema/tx/spring-tx.xsd">
|
|
|
|
<tx:annotation-driven transaction-manager="metadataTxManager"
|
|
proxy-target-class="true" />
|
|
|
|
<bean id="metadataDbSessionConfig"
|
|
class="com.raytheon.uf.edex.database.DatabaseSessionConfiguration">
|
|
<property name="excludes">
|
|
<list>
|
|
<value>com.raytheon.uf.common.dataplugin.text</value>
|
|
<value>com.raytheon.edex.plugin.shef</value>
|
|
</list>
|
|
</property>
|
|
</bean>
|
|
<bean id="metadataSessionFactory"
|
|
class="com.raytheon.uf.edex.database.DatabaseSessionFactoryBean">
|
|
<property name="configLocation">
|
|
<value>file:///${edex.home}/conf/db/hibernateConfig/metadata/hibernate.cfg.xml
|
|
</value>
|
|
</property>
|
|
<!-- >property name="dataSource"><ref bean="datasourceMetadata"/></property -->
|
|
<property name="databaseSessionConfiguration" ref="metadataDbSessionConfig" />
|
|
</bean>
|
|
|
|
<bean id="metadataTxManager"
|
|
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
|
|
<property name="sessionFactory" ref="metadataSessionFactory" />
|
|
</bean>
|
|
|
|
<bean id="mapsSessionFactory"
|
|
class="com.raytheon.uf.edex.database.DatabaseSessionFactoryBean">
|
|
<!-- no annotations to load, so no databaseSessionConfig -->
|
|
<property name="configLocation">
|
|
<value>file:///${edex.home}/conf/db/hibernateConfig/maps/hibernate.cfg.xml
|
|
</value>
|
|
</property>
|
|
</bean>
|
|
|
|
<bean id="mapsTxManager"
|
|
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
|
|
<property name="sessionFactory" ref="mapsSessionFactory" />
|
|
</bean>
|
|
|
|
</beans> |