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 5B4B010CC7 for ; Thu, 13 Jun 2013 12:28:58 +0000 (UTC) Received: (qmail 80244 invoked by uid 500); 13 Jun 2013 12:28:57 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 79965 invoked by uid 500); 13 Jun 2013 12:28:56 -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 79953 invoked by uid 99); 13 Jun 2013 12:28:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jun 2013 12:28:55 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of taariql@gmail.com designates 209.85.217.178 as permitted sender) Received: from [209.85.217.178] (HELO mail-lb0-f178.google.com) (209.85.217.178) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jun 2013 12:28:49 +0000 Received: by mail-lb0-f178.google.com with SMTP id y6so8012874lbh.23 for ; Thu, 13 Jun 2013 05:28:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=sz9aVUKeeHsU6tNiU2KyrN/sQxf879a0s2dzpB3jics=; b=aQZvZAnEPAgc/09FBCdNzFRSJv3FkgkBU66C2fNHalbjWeOeCHh7iaio0MIqtf3amo wBApM2GIehekPPL3ASjR0lzoDv/j1io1Ge74N1l1RX5wI8gn2jbyWRpsR+ZCkmQdDecC ts1E/gxR61ssZgW3gVssPuhT/CmiW9Tte15GZVEqBosmxQxIjwUCmxnDzOlbd5MUgnqz IWkNrFeUxUYIf1TUWpal/E2i815IBA+bsORzieuAa8xiSSTC+NUxYAbZQEC0S9IpUKom M3VDkI3EswnWx0x3+Q/E0GkGVBkRhpmOiHa0SxvVVCJel+iYy1V+P0LQ2bofjsD79plV C2Eg== MIME-Version: 1.0 X-Received: by 10.152.45.65 with SMTP id k1mr281961lam.78.1371126508899; Thu, 13 Jun 2013 05:28:28 -0700 (PDT) Received: by 10.114.29.133 with HTTP; Thu, 13 Jun 2013 05:28:28 -0700 (PDT) In-Reply-To: References: Date: Thu, 13 Jun 2013 14:28:28 +0200 Message-ID: Subject: Re: "costants" string for URIs in a bean.xml From: Taariq Levack To: users@camel.apache.org Content-Type: multipart/alternative; boundary=001a11c1b7ae81518a04df0844cc X-Virus-Checked: Checked by ClamAV on apache.org --001a11c1b7ae81518a04df0844cc Content-Type: text/plain; charset=ISO-8859-1 Rather store the URI in a file, see http://camel.apache.org/properties.html Taariq On Thu, Jun 13, 2013 at 1:08 PM, Cristiano Costantini < cristiano.costantini@gmail.com> wrote: > Hi all, > > I'm moving my routes from Java DSL to the beans.xml (I'll deploy the xml > file into ServiceMix). > > Now in java I have some long uri, for example > "seda:output?multipleConsumers=true&waitForTaskToComplete=Never" > which I extract to a constant and I use in the RouteBuilder. > > In XML I'm finding myself to write the long URI in every route... and it is > easy to make errors as I change the various options and I manually need to > align every endpoint that use it. > > Does it exist a way to store the URI's string in something like a xml > constant and reference it with a easy name in the routes? > > Thank you! > > Cristiano > --001a11c1b7ae81518a04df0844cc--