- Remove proxy classes for Spring transactions, use interfaces as Spring recommends. Amend: Peer review comments. Set retrieval status to failed when payload is null. Change-Id: I458b13856302c8faceeef985c1c41115644520b7 Former-commit-id: 69f294183da4bbeb535b11c81550b1e9b4124ac6
46 lines
No EOL
2.3 KiB
XML
46 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: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="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
|
|
<property name="driverClassName" value="org.hsqldb.jdbc.JDBCDriver" />
|
|
<property name="url" value="jdbc:hsqldb:mem:unit-testing" />
|
|
<property name="username" value="sa" />
|
|
<property name="password" value="" />
|
|
<property name="defaultAutoCommit" value="false" />
|
|
</bean>
|
|
|
|
<bean id="metadataSessionFactory"
|
|
class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
|
|
<property name="dataSource" ref="dataSource"/>
|
|
<property name="annotatedClasses">
|
|
<list>
|
|
<value>com.raytheon.uf.edex.datadelivery.bandwidth.dao.BandwidthAllocation</value>
|
|
<value>com.raytheon.uf.edex.datadelivery.bandwidth.dao.SubscriptionRetrieval</value>
|
|
<value>com.raytheon.uf.edex.datadelivery.bandwidth.dao.BandwidthDataSetUpdate</value>
|
|
<value>com.raytheon.uf.edex.datadelivery.bandwidth.dao.BandwidthSubscription</value>
|
|
<value>com.raytheon.uf.edex.datadelivery.retrieval.db.RetrievalRequestRecord</value>
|
|
</list>
|
|
</property>
|
|
<property name="configLocation">
|
|
<value>classpath:unit-test-hibernate.cfg.xml</value>
|
|
</property>
|
|
</bean>
|
|
|
|
<tx:annotation-driven transaction-manager="metadataTxManager" />
|
|
|
|
<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" />
|
|
|
|
</beans> |