2012-01-06 08:55:05 -06:00
|
|
|
<beans
|
|
|
|
xmlns="http://www.springframework.org/schema/beans"
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
2013-06-28 09:46:25 -04:00
|
|
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
|
2012-01-06 08:55:05 -06:00
|
|
|
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
|
|
|
|
|
|
|
|
<bean id="profilerDecoder" class="com.raytheon.edex.plugin.profiler.ProfilerDecoder"/>
|
|
|
|
|
|
|
|
<bean id="profilerDistRegistry" factory-bean="distributionSrv"
|
|
|
|
factory-method="register">
|
|
|
|
<constructor-arg ref="profilerPluginName" />
|
|
|
|
<constructor-arg value="jms-dist:queue:Ingest.profiler?destinationResolver=#qpidDurableResolver" />
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean id="profilerCamelRegistered" factory-bean="contextManager"
|
|
|
|
factory-method="register" depends-on="persistCamelRegistered">
|
|
|
|
<constructor-arg ref="profiler-camel"/>
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<camelContext id="profiler-camel"
|
|
|
|
xmlns="http://camel.apache.org/schema/spring"
|
|
|
|
errorHandlerRef="errorHandler"
|
|
|
|
autoStartup="false">
|
|
|
|
<!--
|
|
|
|
<endpoint id="profilerFileEndpoint" uri="file:${edex.home}/data/sbn/profiler?noop=true&idempotent=false"/>
|
|
|
|
|
|
|
|
<route id="profilerFileConsumerRoute">
|
|
|
|
<from ref="profilerFileEndpoint"/>
|
|
|
|
<bean ref="fileToString" />
|
|
|
|
<setHeader headerName="pluginName">
|
|
|
|
<constant>profiler</constant>
|
|
|
|
</setHeader>
|
|
|
|
<to uri="jms-generic:queue:Ingest.profiler"/>
|
|
|
|
</route>
|
|
|
|
-->
|
|
|
|
|
|
|
|
<!-- Begin Profiler routes -->
|
|
|
|
<route id="profilerIngestRoute">
|
|
|
|
<from uri="jms-generic:queue:Ingest.profiler?destinationResolver=#qpidDurableResolver"/>
|
|
|
|
<setHeader headerName="pluginName">
|
|
|
|
<constant>profiler</constant>
|
|
|
|
</setHeader>
|
|
|
|
<doTry>
|
|
|
|
<pipeline>
|
|
|
|
<bean ref="stringToFile" />
|
|
|
|
<bean ref="profilerDecoder" method="decode"/>
|
2013-06-10 15:17:17 -04:00
|
|
|
<to uri="direct-vm:persistIndexAlert" />
|
2012-01-06 08:55:05 -06:00
|
|
|
</pipeline>
|
|
|
|
<doCatch>
|
|
|
|
<exception>java.lang.Throwable</exception>
|
2013-06-28 09:46:25 -04:00
|
|
|
<to uri="log:profiler?level=ERROR"/>
|
2012-01-06 08:55:05 -06:00
|
|
|
</doCatch>
|
|
|
|
</doTry>
|
|
|
|
</route>
|
|
|
|
</camelContext>
|
|
|
|
</beans>
|