61 lines
No EOL
2.6 KiB
XML
61 lines
No EOL
2.6 KiB
XML
<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="textProperties" class="com.raytheon.uf.common.dataplugin.PluginProperties">
|
|
<property name="pluginName" value="text" />
|
|
<property name="pluginFQN" value="com.raytheon.uf.common.dataplugin.text" />
|
|
<property name="dao" value="com.raytheon.edex.plugin.text.dao.TextDao" />
|
|
<property name="database" value="fxa"/>
|
|
<property name="record" value="com.raytheon.edex.plugin.text.TextRecord"/>
|
|
</bean>
|
|
|
|
<bean id="textRegistered" factory-bean="pluginRegistry" factory-method="register"
|
|
depends-on="fxaTxManager">
|
|
<constructor-arg value="text"/>
|
|
<constructor-arg ref="textProperties"/>
|
|
</bean>
|
|
|
|
<bean id="fxaDbSessionConfig" class="com.raytheon.uf.edex.database.DatabaseSessionConfiguration">
|
|
<property name="includes">
|
|
<list>
|
|
<value>com.raytheon.uf.common.dataplugin.text</value>
|
|
</list>
|
|
</property>
|
|
</bean>
|
|
<bean id="fxaSessionFactory"
|
|
class="com.raytheon.uf.edex.database.DatabaseSessionFactoryBean">
|
|
<property name="configLocation">
|
|
<value>file:///${edex.home}/conf/db/hibernateConfig/fxa/hibernate.cfg.xml</value>
|
|
</property>
|
|
<property name="databaseSessionConfiguration" ref="fxaDbSessionConfig"/>
|
|
</bean>
|
|
|
|
<bean id="fxaTxManager"
|
|
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
|
|
<property name="sessionFactory" ref="fxaSessionFactory" />
|
|
</bean>
|
|
|
|
<bean id="autoFaxDao" class="com.raytheon.edex.textdb.fax.AutoFaxDao">
|
|
<property name="autoFaxNotifyURI" value="jms-generic:topic:autofax.notify"/>
|
|
</bean>
|
|
|
|
<camelContext id="autofax-common-camel"
|
|
xmlns="http://camel.apache.org/schema/spring"
|
|
errorHandlerRef="errorHandler">
|
|
<route id="autoFaxNotify">
|
|
<from uri="jms-generic:topic:autofax.notify"/>
|
|
<doTry>
|
|
<bean ref="autoFaxDao" method="updateCache" />
|
|
<doCatch>
|
|
<exception>java.lang.Throwable</exception>
|
|
<to uri="log:autoFax?level=ERROR&showBody=false&showCaughtException=true&showStackTrace=true"/>
|
|
</doCatch>
|
|
</doTry>
|
|
</route>
|
|
|
|
</camelContext>
|
|
|
|
</beans> |