camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: camel caching producers
Date Mon, 07 Mar 2011 16:09:02 GMT
On Mon, Mar 7, 2011 at 5:02 PM, Marco Crivellaro
<> wrote:
> that means that if I need to deliver to 1000 distinct ftp servers I should
> expect space to be allocated even if they are used just once? Isn't there a
> way to get the garbage collected?

The cache is LRU based so they will be discarded when it hit its limit.

You can always just create a one time use producer, use it, and then stop it

Producer producer = ... create producer using Camel API
... // process (= send) the message using the producer

> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Twitter: davsclaus
Author of Camel in Action:

View raw message