Apache Camel

1,641 views

Published on

Published in: Technology, Education
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,641
On SlideShare
0
From Embeds
0
Number of Embeds
265
Actions
Shares
0
Downloads
37
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Apache Camel

  1. 1. Apache Camel Антон Архипов http ://arhipov.blogspot.com http://anton-arhipov.livejournal.com
  2. 3. SOA : Spaghetti-Oriented Architecture
  3. 4. What is Apache Camel? http://camel.apache.org
  4. 5. from(“ a ”).to(“ b ”)
  5. 6. from(“ a ” ).choice().when(). method( “ controlBean ” ,“ isOK ” ). to(“ x ” ).end(). pipeline ( “ b ”, “ c ”, “ d ” );
  6. 7. Components
  7. 8. Endpoint URI <component-name>:<component-spec>[?params] from(“ file :/tmp ? consumer.delay=1000”) from(“ bean :myBean ? methodName=getOrders”) from(“ quickfix-server :server.cfg ? log=#loggingFactoryBean”)
  8. 9. Pattern Examples
  9. 10. Content Based Router
  10. 11. Content Based Router
  11. 12. Message Filter
  12. 13. Splitter
  13. 14. Translator
  14. 15. Aggregator
  15. 16. Resequencer reliable delivery!
  16. 17. Routing Slip
  17. 19. Quick Start java –cp … org.apache.camel.spring.Main
  18. 21. Random Features
  19. 22. Error Handling
  20. 23. try … catch … finally
  21. 24. Message-Driven POJO
  22. 25. Camel & ActiveMQ <ul><li>${ACTIVEMQ_HOME}/conf/activemq.xml </li></ul><camelContext id=“camel” xmlns=“ http:// camel.apache.org /schema/spring ”> <route> <!-- you can add routes here --> </route> </camelContext>
  23. 26. http://camel.apache.org

×