Hi Sebastian,
The camel routes configuration in routes.xml, the import application
executor runs asynchronously (#executeAsync) in a new thread. That's why
the camel route execution was done right away and so the done file is
created right away without waiting for the import process to finish:
<endpoint id="fileInbox"
uri="file://${import.signal.inbox}?filter=#singnalFileFilter&preMove=inprogress&move=.done"/>
<!-- snip -->
<route>
<from uri="ref:fileInbox" />
<to uri="direct:execute-import-application" />
</route>
<!-- snip -->
<route>
<from uri="direct:execute-import-application" />
<to uri="bean:importApplicationExecutor?method=executeAsync" />
</route>
I have not tested it by myself, but theoretically, if your
hippo-repository module dependency is 2.24.00 or later, and if you
change '?method=executeAsync' to '?method=execute', then maybe it can
wait for 'direct:execute-import-application' to finish its job and touch
the .done file afterward.
It might be worth trying it. ;-)
Regards,
Woonsan
> <mailto:
hippo-communi...@googlegroups.com>.
--
w....@onehippo.com www.onehippo.com
Boston - 745 Atlantic Ave, 8th Floor, Boston MA 02111
Amsterdam - Oosteinde 11, 1017 WT Amsterdam
US
+1 877 414 4776 (toll free)
Europe
+31(0)20 522 4466