Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <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.0.xsd">
- <bean id="jms" class="org.apache.camel.component.jms.JmsComponent">
- <property name="connectionFactory">
- <bean class="org.apache.activemq.ActiveMQConnectionFactory">
- <property name="brokerURL" value="vm://localhost" />
- </bean>
- </property>
- </bean>
- </beans>
- <routeContext id="ftpToJms1" xmlns="http://camel.apache.org/schema/spring">
- <route>
- <from uri="ftp://rider.com/orders?username=rider&password=secret"/>
- <to uri="jms:incomingOrders1"/>
- </route>
- </routeContext>
- <routeContext id="ftpToJms2" xmlns="http://camel.apache.org/schema/spring">
- <route>
- <from uri="ftp://rider.com/orders?username=rider&password=secret"/>
- <to uri="jms:incomingOrders2"/>
- </route>
- </routeContext>
- <camelContext xmlns="http://camel.apache.org/schema/spring">
- <routeContextRef ref="ftpToJms1"/>
- <routeContextRef ref="ftpToJms2"/>
- </camelContext>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement