On Tue, Mar 6, 2012 at 4:12 PM, Donald Whytock <dwhyt...@gmail.com> wrote: > Would it be useful to put a "timeout" on a route, such that it's > automatically shut down and GCed if messages don't come through it for > X amount of time? Thus making dynamic routes more load-driven? > > Or would this defeat the purpose of GCing dynamic routes by adding a > timer thread? >
You can build this yourself, using for example a RoutePolicy. http://camel.apache.org/routepolicy > Don > > On Tue, Mar 6, 2012 at 5:31 AM, Claus Ibsen <claus.ib...@gmail.com> wrote: >> Hi >> >> There is also the dynamic router EIP >> http://camel.apache.org/dynamic-router >> >> >> >> On Tue, Mar 6, 2012 at 2:14 AM, johnson0233 <johnson0...@gmail.com> wrote: >>> Thanks Guys, now i am getting the idea of dynamic routing, and my new >>> question here is, if i have a central routing manager which can route the >>> message based on rules stores in database, and how could this "routing >>> manager" work with these communication adapters such as ftp, http? As far as >>> i know, ftp component can be triggered if there is new file arrived at a >>> specific folder, and how can "route manager" be triggered or how can "route >>> manager" take responses(retrieve routing info from database for this new >>> file arrived)? Thanks a lot in advance! >>> >>> -- >>> View this message in context: >>> http://camel.465427.n5.nabble.com/Does-Camel-supports-dynamic-routing-by-getting-the-routing-info-from-database-tp5537354p5539577.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, fusenews >> Blog: http://davsclaus.blogspot.com/ >> Author of Camel in Action: http://www.manning.com/ibsen/ -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/