Advertisement
Guest User

Untitled

a guest
Jul 4th, 2015
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. <beans xmlns="http://www.springframework.org/schema/beans"
  2. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="
  4. http://www.springframework.org/schema/beans
  5. http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
  6. <bean id="jms" class="org.apache.camel.component.jms.JmsComponent">
  7. <property name="connectionFactory">
  8. <bean class="org.apache.activemq.ActiveMQConnectionFactory">
  9. <property name="brokerURL" value="vm://localhost" />
  10. </bean>
  11. </property>
  12. </bean>
  13. </beans>
  14.  
  15. <routeContext id="ftpToJms1" xmlns="http://camel.apache.org/schema/spring">
  16. <route>
  17. <from uri="ftp://rider.com/orders?username=rider&password=secret"/>
  18. <to uri="jms:incomingOrders1"/>
  19. </route>
  20. </routeContext>
  21. <routeContext id="ftpToJms2" xmlns="http://camel.apache.org/schema/spring">
  22. <route>
  23. <from uri="ftp://rider.com/orders?username=rider&password=secret"/>
  24. <to uri="jms:incomingOrders2"/>
  25. </route>
  26. </routeContext>
  27.  
  28. <camelContext xmlns="http://camel.apache.org/schema/spring">
  29. <routeContextRef ref="ftpToJms1"/>
  30. <routeContextRef ref="ftpToJms2"/>
  31. </camelContext>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement