camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
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
<mcrive@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: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message