Created
August 16, 2011 18:35
-
-
Save porcelli/1149803 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void main(String... args) throws MuleException { | |
Mule myMule = Mule.newInstance(new MyModule()); | |
myMule.start(); //start mule | |
} | |
public static class MyModule extends AbstractModule { // config module | |
@Override | |
protected void configure() { | |
flow("SimpleFilePollAndMove") //defines a named flow | |
.from("file:///opt/my_app/out") //source folder | |
.send("file:///opt/other_app/in"); //destiny folder | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment