Return-Path: Delivered-To: apmail-activemq-camel-user-archive@locus.apache.org Received: (qmail 14429 invoked from network); 9 Jun 2008 20:33:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Jun 2008 20:33:42 -0000 Received: (qmail 48001 invoked by uid 500); 9 Jun 2008 20:33:44 -0000 Delivered-To: apmail-activemq-camel-user-archive@activemq.apache.org Received: (qmail 47987 invoked by uid 500); 9 Jun 2008 20:33:44 -0000 Mailing-List: contact camel-user-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-user@activemq.apache.org Delivered-To: mailing list camel-user@activemq.apache.org Received: (qmail 47976 invoked by uid 99); 9 Jun 2008 20:33:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jun 2008 13:33:44 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [62.75.158.78] (HELO mail.liquid-reality.de) (62.75.158.78) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jun 2008 20:32:54 +0000 Received: from [10.0.0.10] (HSI-KBW-085-216-027-031.hsi.kabelbw.de [85.216.27.31]) by mail.liquid-reality.de (Postfix) with ESMTP id 38C2D242001A for ; Mon, 9 Jun 2008 20:33:10 +0000 (UTC) Message-ID: <484D9388.8040705@die-schneider.net> Date: Mon, 09 Jun 2008 22:33:12 +0200 From: Christian Schneider User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: camel-user@activemq.apache.org Subject: Re: from http://... to file://... References: <4C1FB9C00D24A140906239533638C4D20461C523@EXVS04.exserver.dk> In-Reply-To: <4C1FB9C00D24A140906239533638C4D20461C523@EXVS04.exserver.dk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org What I still don�t understand. What is the difference between the jetty and the http component and why are both needed? Normally I would have thought the jetty component hosts a server that can be used to trigger a camel route from the outside. But in the example you used it to extract data from an external page. Am I missing something here? Greetings Christian Claus Ibsen schrieb: > Hi > > Ah the issue is that the Jetty component is an EventDrivenConsumer and not Scheduled. So you have to trigger the event yourself to start the event in jetty. > > Eg: > from("timer://foo?fixedRate=true&delay=0&period=10000").to("jetty:http://www.google.com").setHeader(FileComponent.HEADER_FILE_NAME, "message.txt").to("file:target/hello"); > > This will invoke the google homepage every 10th second and store it as a file. > > http://activemq.apache.org/camel/event-driven-consumer.html > > > Med venlig hilsen > > Claus Ibsen >