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 7B18C101D9 for ; Wed, 27 Nov 2013 11:50:29 +0000 (UTC) Received: (qmail 41462 invoked by uid 500); 27 Nov 2013 11:50:27 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 41414 invoked by uid 500); 27 Nov 2013 11:50:27 -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 41405 invoked by uid 99); 27 Nov 2013 11:50:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Nov 2013 11:50:26 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.223.181 as permitted sender) Received: from [209.85.223.181] (HELO mail-ie0-f181.google.com) (209.85.223.181) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Nov 2013 11:50:21 +0000 Received: by mail-ie0-f181.google.com with SMTP id e14so11247734iej.26 for ; Wed, 27 Nov 2013 03:50:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=f5yrhs9jRZWvupP3+vzNCdevkCjaxTNXRptvIMDYOso=; b=iBdZh0f6MrgszTXQYWlvr2z5tdYCXZSzL14kbZHJWxtOTz50xmcoWCCZgQR4dPTRrW dFZKvrcGucAQevHarbaLYz1JQa1W4EXBk+lFIBX8wci2LtW1W8bOx3wrAjgm0wQH5p3y WLS4MOR+neSkLlaEypOGXNeoqK+UkVFs6pYAw79iajsG5VTaHUPWSdgZ6JhKYJZTC+Hh DEoJyZTUikzL9lMfCuUZQdDIM7n6XgOFH97RX3vzknxj+gMi12Y34MID7IKZQfjI3i2a NsAobGHZR5h31IWl090YL5jK3mXCCNGVxcq3W2QbUGelbjAJPvaLUY8jueiOfosVD0s7 yh0Q== X-Received: by 10.42.61.147 with SMTP id u19mr10650779ich.36.1385553000801; Wed, 27 Nov 2013 03:50:00 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.89.103 with HTTP; Wed, 27 Nov 2013 03:49:40 -0800 (PST) In-Reply-To: <1385552398575-5743924.post@n5.nabble.com> References: <1385552398575-5743924.post@n5.nabble.com> From: Claus Ibsen Date: Wed, 27 Nov 2013 12:49:40 +0100 Message-ID: Subject: Re: rename a file To: "users@camel.apache.org" Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org See this FAQ http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html On Wed, Nov 27, 2013 at 12:39 PM, anakin59490 wrote: > Hi, > > I've got issue for renaming a file > > this is my route : > > from("direct:checkData") > .beanRef(PAYMENT_SERVICE_BEAN, "checkData(*, ${headers})") > .choice() > .when(simple("${in.body} != null")) > .to("{{destination.endpoint.1}}") > .otherwise() > .end() > .log(this.getClass().getName() + " ***** End of Process file : > ${file:name} ***** "); > > > My bean "checkData" returns the new name of the file and i must save it into > a folder with this new name. > > > {{destination.endpoint.1}} comes from a properties file called > endpoint.properties : > destination.endpoint.1={{file.endpoint.1}} > file.endpoint.1=file\:/\\xxxxxx/echange/Payment/SAVE/?filename=&{in.body} > > > When i run it, i get this message : > > "OnException[... because of Could not resolve placeholder 'in.body' in > string value "file\:/\\xxxxxx/echange/Payment/SAVE/?filename=&{in.body} > > > Is it the right way? > > Thank's in advance for your help > > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/rename-a-file-tp5743924.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cibsen@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen