Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. context = new DefaultCamelContext()
  2. context.addRoutes(router)
  3. context.start()
  4.  
  5. context.routeDefinitions.toList().each { RouteDefinition routeDefinition ->
  6. routeDefinition.adviceWith(context as ModelCamelContext, new AdviceWithRouteBuilder() {
  7. @Override
  8. void configure() throws Exception {
  9. mockEndpointsAndSkip('log:out')
  10. }
  11. })
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement