Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String... args) throws MuleException {
- Mule myMule = Mule.newInstance(new AbstractModule() { //creates a new mule instance using an anonymous inner AbstractModule based class
- @Override
- protected void configure() {
- flow("multipleFileMove")
- .from("file:///opt/my_app/out") // source folder
- .transformTo(byte[].class) //transform file to byte[]
- .broadcast() //broadcast the payload to
- .send("file:///opt/other_app/in") //destiny folder
- .send("file:///opt/crm/in") //destiny folder
- .send("file:///opt/billing/in") //destiny folder
- .endBroadcast();
- }
- });
- myMule.start(); //start mule
- }
Add Comment
Please, Sign In to add comment