Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BDE63EF07 for ; Sat, 2 Feb 2013 17:02:05 +0000 (UTC) Received: (qmail 56737 invoked by uid 500); 2 Feb 2013 17:02:04 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 56710 invoked by uid 500); 2 Feb 2013 17:02:04 -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 56701 invoked by uid 99); 2 Feb 2013 17:02:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Feb 2013 17:02:04 +0000 X-ASF-Spam-Status: No, hits=3.5 required=5.0 tests=HTML_IMAGE_ONLY_28,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_REMOTE_IMAGE,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of christian.mueller@gmail.com designates 209.85.214.174 as permitted sender) Received: from [209.85.214.174] (HELO mail-ob0-f174.google.com) (209.85.214.174) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Feb 2013 17:01:59 +0000 Received: by mail-ob0-f174.google.com with SMTP id 16so5104571obc.5 for ; Sat, 02 Feb 2013 09:01:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=yR13JSVQwHuy2fB1X+jfoIhN1hRVL7mCSthyWwYITfc=; b=0hUD26NGZC8tF1J5B8f7d1p7vMOloXlwHe266ihQLN9JEJCEuh6OqHweTeTZvcEwOY /7Y+JB0SoRvPjvU/7YBLmq6KyCd8fPcexS2hRLgvjpuqUMygDLEPdmljVECjIY3W0blv t3Cs7r6RDkS0G2mJ7YGHx82f1C0ColK8402gESV21pfdf3KhfTXbOYsuUTbD4xB4f2qw hi6HBKvUAbKfJZMpAXCjVjJuM2hogVKQOHrK15dz8sQbhOndBbcPZRES8SmLb0Cesz/p XBfyecwxupv0mpw4Pl/woWPIItuMx/b8lHo0lKtPtgvLCzT6bvC0LlsYO36Ep2p3DgeY b/UA== MIME-Version: 1.0 X-Received: by 10.60.1.42 with SMTP id 10mr12437095oej.125.1359824498545; Sat, 02 Feb 2013 09:01:38 -0800 (PST) Received: by 10.182.114.103 with HTTP; Sat, 2 Feb 2013 09:01:38 -0800 (PST) In-Reply-To: <91BD6953-3882-4F01-9FDF-4150F1E99441@gmail.com> References: <1359294919276-5726376.post@n5.nabble.com> <1359316013402-5726388.post@n5.nabble.com> <91BD6953-3882-4F01-9FDF-4150F1E99441@gmail.com> Date: Sat, 2 Feb 2013 18:01:38 +0100 Message-ID: Subject: Re: Reading a file From: =?ISO-8859-1?Q?Christian_M=FCller?= To: users@camel.apache.org Content-Type: multipart/alternative; boundary=e89a8fb1fe183152e604d4c0d0f7 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8fb1fe183152e604d4c0d0f7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable In this case you can use a producer template and send the received message (file) to what ever endpoint you want, e.g. a direct endpoint. And for this endpoint, you can develop a route with the functionality you want: from("direct:start") .to("...") ... .to(".."); Exchange exchange =3D receiveNoWait("file://...? fileName=3Dfoo.txt&noop=3Dtrue"); if (exchange !=3D null) { YourCustomBean bean =3D exchange.getIn().getBody(YourCustomBean.class); producerTemplate.sendBody("direct:start", bean); } Best, Christian On Tue, Jan 29, 2013 at 8:31 AM, Lars-Erik Helander wrote= : > In general I meant the transformation to be part of these steps, in some > cases it it only the transformation that takes place between reading the > file and consumer reception, but there could be other steps to. > > Skickat fr=E5n min iPhone > > 28 jan 2013 kl. 23:22 skrev Christian M=FCller >: > > > Don't understand. You have to do something else BEFORE you can read the > > file? Or AFTER reading the file and BEFORE you transform the content? > > > > Sent from a mobile device > > Am 27.01.2013 20:47 schrieb "helander" : > > > >> Hi Christian, > >> > >> sounds simple :) > >> > >> However before the consumer can consume the contents of the file, it > needs > >> to be processed by some additonal (route)-steps, how would I do that? > >> > >> Thanks > >> > >> Lars > >> > >> > >> > >> -- > >> View this message in context: > >> http://camel.465427.n5.nabble.com/Reading-a-file-tp5726376p5726388.htm= l > >> Sent from the Camel - Users mailing list archive at Nabble.com. > >> > -- --e89a8fb1fe183152e604d4c0d0f7--