That's pretty close to what I want to do, but the ThrottlingInflightRoutePolicy appears to throttle at the end of the route (or so it seems from the 'onExchangeDone' method). I think I could make it work by writing my own policy to check the DB in the 'onExchangeBegin' method.
Thanks Claus! Claus Ibsen-2 wrote: > > Hi > > Something similar you can do is to throttle intaking messages > according to some metrics, such as the rate of speed > that external server can handle. > > Check out RoutePolicy > http://camel.apache.org/routepolicy.html > > -- > Claus Ibsen > Apache Camel Committer > > Author of Camel in Action: http://www.manning.com/ibsen/ > Open Source Integration: http://fusesource.com > Blog: http://davsclaus.blogspot.com/ > Twitter: http://twitter.com/davsclaus > > -- View this message in context: http://old.nabble.com/Handle-finite-number-of-remote-requests--tp28301621p28329877.html Sent from the Camel - Users mailing list archive at Nabble.com.
