Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 19609 invoked from network); 25 Sep 2009 11:03:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Sep 2009 11:03:30 -0000 Received: (qmail 76650 invoked by uid 500); 25 Sep 2009 11:03:30 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 76594 invoked by uid 500); 25 Sep 2009 11:03:30 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 76584 invoked by uid 99); 25 Sep 2009 11:03:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Sep 2009 11:03:30 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Sep 2009 11:03:19 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Mr8Zm-0002t1-Rn for users@camel.apache.org; Fri, 25 Sep 2009 04:02:58 -0700 Message-ID: <25610124.post@talk.nabble.com> Date: Fri, 25 Sep 2009 04:02:58 -0700 (PDT) From: jpcook To: users@camel.apache.org Subject: Re: Atom Component In-Reply-To: <5380c69c0909250335h21696d61o1cc32d544ba7c3d6@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: jonathan.cook@erars.plus.com References: <25609495.post@talk.nabble.com> <5380c69c0909250335h21696d61o1cc32d544ba7c3d6@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org thanks The atom endpoint already has consumer.delay which I think I would use. Is there an example of the consumerTemplate? Could I use the web-console to configure the dynamic uris or just a normal xml configuration file? About the last point, that is how I have done it in the past but just thought I'd check if there was something built into camel now. :) Claus Ibsen-2 wrote: > > Hi > > You can use a scheduler / timer to trigger a route at a certain > interval (quartz or timer) > > And then use a processor / bean with a consumerTemplate to consume > from the atom feeds. > Then you can use dynamic URIs. > > And if you want that to route in parallel you can use the JDK > concurrency API for that as well. > > Sometimes the easiest stuff is to do that using regular java in a POJO. > Submit tasks to the JDK executor services and then afterwards route > the result to a file endpoint to store the file. > Or a "direct" endpoint so you can do additional routing. > > > > > On Fri, Sep 25, 2009 at 12:02 PM, jpcook > wrote: >> >> Hello, >> >> I have a requirement to pull 24 atom feeds, process them in the same way >> via >> xslt and then write the results to a file location which is slightly >> different for each feed. This is fairly straight forward. >> >> I was looking at the atom component as it looks almost perfect. But I >> wondered if there was a clever way I could maybe specify a list of urls >> to >> the component and then it could process them concurrently as I don't want >> to >> have to do this synchronously? A bit like when you use the splitter you >> can >> specify parallelProcessing() >> >> I guess another alternative would be to have a route for each feed I need >> to >> pull but this seemed a bit overkill as they would essentially be all the >> same. Also I wanted to make the atom urls and the location that the >> result >> gets written to configurable but we are not using the spring dsl xml >> configuration. As an alternative I could make these parameters >> configurable >> via my own configuration but I also wondered if I could perhaps control >> these parameters via JMX or even better via the web console? >> >> Any thoughts much appreciated. Thanks. >> -- >> View this message in context: >> http://www.nabble.com/Atom-Component-tp25609495p25609495.html >> Sent from the Camel - Users mailing list archive at Nabble.com. >> >> > > > > -- > Claus Ibsen > Apache Camel Committer > > Open Source Integration: http://fusesource.com > Blog: http://davsclaus.blogspot.com/ > Twitter: http://twitter.com/davsclaus > > -- View this message in context: http://www.nabble.com/Atom-Component-tp25609495p25610124.html Sent from the Camel - Users mailing list archive at Nabble.com.