Amend: Rebase on newest development commits Change-Id: I70fcf39d4c819e961921496c9a8f9097981b1de7 Former-commit-id:3adc0f3bd9
[formerly 78bfd27bf513a4014c957a069432e8a05d519004] Former-commit-id:457710f5d4
44 lines
No EOL
2 KiB
XML
44 lines
No EOL
2 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:p="http://www.springframework.org/schema/p"
|
|
xmlns:tx="http://www.springframework.org/schema/tx"
|
|
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
|
http://www.springframework.org/schema/beans/spring-beans.xsd
|
|
http://www.springframework.org/schema/tx
|
|
http://www.springframework.org/schema/tx/spring-tx.xsd">
|
|
|
|
<bean id="metadataSessionFactory"
|
|
class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
|
|
<property name="dataSource" ref="dataSource" />
|
|
<property name="packagesToScan">
|
|
<list>
|
|
<value>com.raytheon.uf.edex.datadelivery.bandwidth.dao</value>
|
|
<value>com.raytheon.uf.edex.datadelivery.retrieval.db</value>
|
|
<value>oasis.names.tc.ebxml.regrep.xsd.rim.v4</value>
|
|
</list>
|
|
</property>
|
|
<property name="configLocation">
|
|
<value>classpath:unit-test-hibernate.cfg.xml</value>
|
|
</property>
|
|
</bean>
|
|
|
|
<tx:annotation-driven transaction-manager="metadataTxManager" proxy-target-class="true" />
|
|
|
|
<bean id="metadataTxManager"
|
|
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
|
|
<property name="sessionFactory" ref="metadataSessionFactory" />
|
|
</bean>
|
|
|
|
<!-- Register the application context with EDEXUtil -->
|
|
<bean class="com.raytheon.uf.edex.core.EDEXUtil" />
|
|
|
|
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"
|
|
destroy-method="close">
|
|
<property name="driverClassName" value="org.h2.Driver" />
|
|
<property name="url" value="${unit.test.jdbc.url}:;INIT=create schema IF NOT EXISTS ebxml" />
|
|
<property name="username" value="sa" />
|
|
<property name="password" value="" />
|
|
<property name="defaultAutoCommit" value="false" />
|
|
</bean>
|
|
|
|
</beans> |