Guest User

Untitled

a guest
Jan 24th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. public static void main(String... args) throws MuleException {
  2. Mule myMule = Mule.newInstance(new MyModule());
  3.  
  4. myMule.start(); //start mule
  5. }
  6.  
  7. public static class MyModule extends AbstractModule { // config module
  8. @Override
  9. protected void configure() {
  10. flow("SimpleFilePollAndMove") //defines a named flow
  11. .from("file:///opt/my_app/out") //source folder
  12. .send("file:///opt/other_app/in"); //destiny folder
  13. }
  14. }
Add Comment
Please, Sign In to add comment