Skip to content

Instantly share code, notes, and snippets.

@porcelli
Created August 16, 2011 18:35
Show Gist options
  • Save porcelli/1149803 to your computer and use it in GitHub Desktop.
Save porcelli/1149803 to your computer and use it in GitHub Desktop.
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