Hi

I am trying to determine when the unzip is complete (ie all files have been 
unzipped). Then and only then do I want to go to "direct:pingmainframe".
The input to this route is a single zip file containing up to many thousand 
small files. If I remove the two choice/when statements every single unzipped 
file will be sent to "direct:pingmainframe" which I do not want.
Is there a way to make sure I invoke direct:pingmainframe once?

        from("direct:unzipper")
                .routeId("_unzipper")
                .split(new ZipSplitter()).streaming()
                .to(config.getDataFolderProducerUri("toMF"))
                .choice()
                .when(simple("${in.header.CamelSplitComplete} == true"))
                .to("direct:pingmainframe");


Med venlig hilsen
Claus Paludan * BEC

Integrations og serverspecialist * Kompetencer & udvikling
Direkte 46 76 37 11 * Mobil 61 56 77 11
E-mail: c...@bec.dk

****************************************************
BEC a.m.b.a. * CVR-nr. 13 08 88 10
Havsteensvej 4 * 4000 Roskilde
www.bec.dk * Reception 46 38 24 00

Reply via email to