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 81315D6B9 for ; Tue, 19 Mar 2013 06:51:11 +0000 (UTC) Received: (qmail 16614 invoked by uid 500); 19 Mar 2013 06:51:10 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 16276 invoked by uid 500); 19 Mar 2013 06:51:09 -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 Delivered-To: moderator for users@camel.apache.org Received: (qmail 83931 invoked by uid 99); 19 Mar 2013 06:29:58 -0000 X-ASF-Spam-Status: No, hits=3.0 required=5.0 tests=FORGED_YAHOO_RCVD,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Date: Mon, 18 Mar 2013 23:29:32 -0700 (PDT) From: jinaLu To: users@camel.apache.org Message-ID: <1363674572139-5729395.post@n5.nabble.com> In-Reply-To: References: <1363606558415-5729339.post@n5.nabble.com> Subject: Re: dynamic properties MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I use camel 2.8 according my serviceMix server. In cfg I have: message=My message ${property.type} is for user ${property.user} messageSubject.invoice=Invoice message I use Java DSL to define route and osgi blueprint for other purposes. My route looks like: from("direct:start") .to("bean:FindXML") .setProperty("type", xpath("/message/@Type")) .setProperty("user", xpath("/message/@To")) .to("bean:SomeActions") .setHeader("messageText", simple("{{message}}")) .setHeader("messageSubject", simple("{{messageSubject.${property.type}}}")) None of this header setters work. -- View this message in context: http://camel.465427.n5.nabble.com/dynamic-properties-tp5729339p5729395.html Sent from the Camel - Users mailing list archive at Nabble.com.