awips2/edexOsgi/com.raytheon.uf.edex.metartohmdbsrv/res/spring/metartohmdb-plugin.xml

38 lines
1.7 KiB
XML
Raw Normal View History

<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:amq="http://activemq.apache.org/schema/core" 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-2.0.xsd
http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.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="directvm:metarToHMDB"/>
<bean ref="metarToHMDB" method="process"/>
</route>
</camelContext>
</beans>