On Mon, Mar 7, 2011 at 5:02 PM, Marco Crivellaro
<mcr...@optasportsdata.com> 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
producer.start
... // process (= send) the message using the producer
producer.stop



> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/camel-caching-producers-tp3412417p3412643.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to