Ruta camel
Enviado por camilo andres • 3 de Diciembre de 2018 • Trabajo • 426 Palabras (2 Páginas) • 105 Visitas
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:camel="http://camel.apache.org/schema/spring"
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.0.xsd http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
<bean class="com.skillnet.process.Jmsprocesador" id="jmsprocesador"/>
<bean class="com.skillnet.config.DbConfig" id="dataconf"/>
<bean class="org.apache.camel.component.jms.JmsComponent" id="jms">
<property name="connectionFactory">
<bean class="org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL" value="tcp://172.18.48.121:61616"/>
</bean>
</property>
</bean>
<camelContext id="camelContext-1670d651-5fe9-45a4-8561-c7eb5f4bc8ae"
trace="false" xmlns="http://camel.apache.org/schema/spring">
<jmxAgent disabled="true" id="agent"/>
<route id="_route1">
<!-- <setBody id="_setBody1">
<simple>${body}Message at ${date:now:yyyy-MM-dd HH:mm:ss}</simple>
</setBody>-->
<from id="_to2" uri="{{fromRoute}}"/>
<process id="_process1" ref="jmsprocesador"/>
<to id="_to1" uri="jms:cola"/>
<doTry id="_doTry1">
<pollEnrich id="_pollEnrich1">
<simple>jms:cola</simple>
</pollEnrich>
<to id="_to4" uri="{{salidaRoute}}"/>
<doCatch id="_doCatch1">
<exception>java.io.IOException</exception>
<to id="_to2" uri="{{salidaemer}}"/>
</doCatch>
<doFinally id="_doFinally1"/>
</doTry>
</route>
</camelContext>
</beans>
...