camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yann <yann.bouff...@gmail.com>
Subject Splitting a List and deleting it at the end
Date Thu, 29 Jul 2010 13:22:56 GMT

Hi,

I'm splitting a list containing 100 000 objects. Each object is sent to a
queue after a short delay.
If I don't clear my list, my JVM will explode (java heap space...). How
could I get my initial list after splitting it ?
Below my route : 
from("bean:bean?method=read")
	 // List split
	 .split(body(List.class))
         // delay
         .delay(1)
         // body conversion
	.convertBodyTo(Person.class)
         // queue
	.to("activemq:queue");
        // this is where I should be able to clear the list!

Thanks for any help !
Yann
-- 
View this message in context: http://camel.465427.n5.nabble.com/Splitting-a-List-and-deleting-it-at-the-end-tp2256727p2256727.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message