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 11BFD4893 for ; Thu, 2 Jun 2011 23:16:13 +0000 (UTC) Received: (qmail 86955 invoked by uid 500); 2 Jun 2011 23:16:12 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 86922 invoked by uid 500); 2 Jun 2011 23:16:12 -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 86914 invoked by uid 99); 2 Jun 2011 23:16:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jun 2011 23:16:12 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=SPF_PASS,T_FRT_LOLITA1 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [72.5.230.250] (HELO mail.adchemy.com) (72.5.230.250) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jun 2011 23:16:06 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.adchemy.com (Postfix) with ESMTP id 6EC91203E6728 for ; Thu, 2 Jun 2011 16:15:46 -0700 (PDT) X-Virus-Scanned: amavisd-new at adchemy.com Received: from mail.adchemy.com ([127.0.0.1]) by localhost (mail.adchemy.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NHb-dR76mQz9 for ; Thu, 2 Jun 2011 16:15:45 -0700 (PDT) Received: from mail.adchemy.com (mail.adchemy.com [127.0.1.1]) by mail.adchemy.com (Postfix) with ESMTP id BEB44203E489B for ; Thu, 2 Jun 2011 16:15:45 -0700 (PDT) Date: Thu, 2 Jun 2011 16:15:45 -0700 (PDT) From: Bharat Goyal To: users@camel.apache.org Message-ID: <457470250.7961307056544314.JavaMail.bharat@Bharat-Goyals-MacBook-Pro.local> In-Reply-To: <712757533.7881307054382696.JavaMail.bharat@Bharat-Goyals-MacBook-Pro.local> Subject: Re: pass file name of generated file to next endpoint MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [70.42.188.130] X-Mailer: Zimbra 6.0.8_GA_2685 (Yahoo! Zimbra Desktop/1.0.3_1696_Mac) Thanks that works. However, how do I pass the relative folder to generate the file in from my = property file? e.g. camel doesnt allow "datafolder.inbound.path" to be inside the file com= ponent string. ${header.CamelFileNameProduced} ***************************************************************************= ***************=20 =E2=80=9CCONFIDENTIALITY NOTICE: The information transmitted in this messag= e and its attachments (if any) is intended only for the person or entity to= whom or which it is addressed and may contain confidential and/or privileg= ed material. Any review, retransmission, dissemination or other use of, or = taking of any action in reliance upon this information, by persons or entit= ies other than the intended recipient is prohibited. If you have received t= his in error, please contact the sender and delete this e-mail and associat= ed material from any computer. The intended recipient of this e-mail may on= ly use, reproduce, disclose, or distribute the information contained in thi= s e-mail and any attached files with the permission of the sender.=E2=80=9D= =20 ----- Original Message ----- From: "Bharat Goyal" To: "users" Sent: Thursday, June 2, 2011 3:39:44 PM GMT -08:00 US/Canada Pacific Subject: pass file name of generated file to next endpoint Hi,=20 We have a route that is configured to get XML content from a http endpoint,= log it to a file using the file component (as shown below). However, what = we want is to pass only the path of the file and not input stream to the ne= xt component in the route. Is there a way to extract the file name and only= pass that to the next uri/component in the route?=20 Thanks=20 =20 =20 =20 =20 =20 =20 =20 =20