java - Camel Route For All Xml Files With Done File -
i want seemingly simple task apache camel. want monitor directory xml files. when xml files found, if there corresponding done file same name, want camel notify me.
here's route i'm using
from("file:/tmp?include=.*.xml&donefilename=${file:name}.done")
but doesn't trigger.
what doing wrong?
i don't see issue route. check like
from("file:/tmp?include=.*.xml&donefilename=${file:name}.done") .process( new processor() { public void process(exchange e) throws exception{ //any logic or system.out.println("file "+e.getin().getbody()); } });
are sure file name matches pattern? how triggering notification. sure code fine or integrated route.
Comments
Post a Comment