awips2/edexOsgi/com.raytheon.uf.edex.metartohmdbsrv/res/spring/metartohmdb-plugin.xml
Nate Jensen 99b4a21414 Issue #1989 update spring xsd references to 3.1, fix ingestDat.sh
Change-Id: I478c31b72267fe7fd3b7a6559de87e8600c3c0c3

Former-commit-id: b7b619e1a3a85ac8c5f22a36317e22e15ad557a2
2013-05-29 14:49:43 -05:00

37 lines
No EOL
1.5 KiB
XML

<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
<bean id="metarToHMDB" class="com.raytheon.uf.edex.metartohmdb.MetarToHMDBSrv" />
<!-- HMDB Database Configuration-->
<bean id="hmdbSessionFactory"
class="com.raytheon.uf.edex.database.DatabaseSessionFactoryBean">
<!-- No hibernate annotations should be loaded -->
<property name="configLocation">
<value>file:///${edex.home}/conf/db/hibernateConfig/hmdb/hibernate.cfg.xml</value>
</property>
</bean>
<bean id="hmdbTxManager"
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory" ref="hmdbSessionFactory" />
</bean>
<bean id="metarToHMDBCamelRegistered" factory-bean="contextManager"
factory-method="register">
<constructor-arg ref="metarToHMDB-camel"/>
</bean>
<camelContext id="metarToHMDB-camel"
xmlns="http://camel.apache.org/schema/spring"
errorHandlerRef="errorHandler" autoStartup="false">
<endpoint id="metarToHMDBEndpoint" />
<route id="metarToHMDBRoute">
<from uri="direct-vm:metarToHMDB"/>
<bean ref="metarToHMDB" method="process"/>
</route>
</camelContext>
</beans>