Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. from(directoryPath + "?recursive=true)
  2. .routeId("Test")
  3. .process(testProcessor)
  4. .recipientList(simple("${header.nameOfMyDestination}")
  5.  
  6. camelContext.getRouteDefinition("Test")
  7. .adviceWith(camelContext, new AdviceWithRouteBuilder() {
  8. @Override
  9. public void configure() throws Exception {
  10. replaceFromWith("file://" + sourceDirectory + "?recursive=true");
  11. weaveByToString("RecipientList*")
  12. .recipientList(simple("mock" + "${header.nameOfMyDestination}"));
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement