awips2/edexOsgi/com.raytheon.uf.edex.plugin.text/res/spring/text-common.xml
Brian Clements 20cb82cc98 Omaha #2536 merged edex.textdb into text plugins
Former-commit-id: c885bf9426 [formerly c55124bcc7] [formerly 5b5295e5ad] [formerly c885bf9426 [formerly c55124bcc7] [formerly 5b5295e5ad] [formerly da7d5888b0 [formerly 5b5295e5ad [formerly 5a3e156e6c3307e5e631fd54c86bd1ae337c2f7c]]]]
Former-commit-id: da7d5888b0
Former-commit-id: 39ab0e1a08 [formerly e4bb70cbe9] [formerly 909b50360144c1b7aaf549971a4592d7aee00d9c [formerly 003917f0ed]]
Former-commit-id: 21b6858b7cb89d1d240688b3c00b569a7c69d267 [formerly 30fb567666]
Former-commit-id: ebc9bfa351
2014-05-20 16:07:20 -05:00

75 lines
No EOL
2.9 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="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.uf.edex.plugin.text.dao.TextDao" />
<property name="database" value="fxa"/>
<property name="record" value="com.raytheon.uf.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="classFinder" ref="dbClassFinder" />
<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.uf.edex.plugin.text.fax.AutoFaxDao">
<property name="autoFaxNotifyURI" value="jms-generic:topic:autofax.notify"/>
</bean>
<bean id="textdbsrv" class="com.raytheon.uf.edex.plugin.text.dbsrv.TextDBSrv" />
<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"/>
</doCatch>
</doTry>
</route>
<route id="textdbsrvinternal">
<from uri="direct-vm:int.textdb.request" />
<bean ref="serializationUtil" method="unmarshalFromXml" />
<bean ref="textdbsrv" method="processMessage" />
<bean ref="serializationUtil" method="marshalToXml" />
</route>
</camelContext>
<bean factory-bean="manualProc"
factory-method="registerSecondaryPlugin">
<constructor-arg value="text" />
</bean>
</beans>