camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henryk Konsek <hekon...@gmail.com>
Subject Re: Sinchronize a route with JPA and a route with SFTP component
Date Mon, 21 Jan 2013 15:40:00 GMT
Hi,

> I can I discover that first route has finished the polling ?

JPA consumer works in a batch [1] mode. It means that you can refer to
the following exchange properties in your route:
* CamelBatchSize
* CamelBatchIndex
* CamelBatchComplete

You are interested in the last one (which will be true only for the
last message in the batch).

Laters.

[1] http://camel.apache.org/batch-consumer.html

--
Henryk Konsek
http://henryk-konsek.blogspot.com

Mime
View raw message