Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1FEB5EA1B for ; Sat, 24 Nov 2012 08:04:23 +0000 (UTC) Received: (qmail 28678 invoked by uid 500); 24 Nov 2012 08:04:22 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 28631 invoked by uid 500); 24 Nov 2012 08:04:21 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 28416 invoked by uid 99); 24 Nov 2012 08:04:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Nov 2012 08:04:19 +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 (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.215.45 as permitted sender) Received: from [209.85.215.45] (HELO mail-la0-f45.google.com) (209.85.215.45) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Nov 2012 08:04:15 +0000 Received: by mail-la0-f45.google.com with SMTP id p9so6767724laa.32 for ; Sat, 24 Nov 2012 00:03:54 -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=uJ5SylLH5XHm9HfHKFRnpip/g7kNgN4nqUQDW+rkNlc=; b=TCl5/+hzJdOFxi0xoKN4S6G7fdAf8jCLAD1NR3S7xn1luuENaaoukVDLtkZ0BWA0e2 E4GLTeOvPTaklsiNg0beypFUt6D6YeVrDX2bk8+6lUkzuEEBS+iDjkNS4NnQdS6c5RbC Eh+uRTdhSVGCVfuEcjbviVEX+Ju4BIvKSeEs61YppCfAnT0UHzR2uuh96m9FS4jGo7PA Ani69GisO1vIf/ksnIwo5GILZwNeVNh9HR4svTR46J4Cl8+jXgzFwbyQ9YqZZNcM+VWK n6qAXmpSZYehQn78wIOJYe2HepIwlFr0sq0qewU5Va7foUyuQH/YHvjKzpz3rpRDoG1d I4bA== Received: by 10.152.135.41 with SMTP id pp9mr5581217lab.7.1353744234146; Sat, 24 Nov 2012 00:03:54 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.103.129 with HTTP; Sat, 24 Nov 2012 00:03:33 -0800 (PST) In-Reply-To: <1353683425711-5723164.post@n5.nabble.com> References: <1353683425711-5723164.post@n5.nabble.com> From: Claus Ibsen Date: Sat, 24 Nov 2012 09:03:33 +0100 Message-ID: Subject: Re: How do you build an endpoint string using a JVM argument To: dev@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Fri, Nov 23, 2012 at 4:10 PM, justinblandford wrote: > Hi, > > I have a bean defined as follows:- > > lazy-init="true"> > > > > that I use to access a queue connection factory. So in my camel route the > endpoint looks like:- > > > > and this all works fine. However, I want to externalise the queue > (myQueueName) so that I can provide it as a JVM argument. I found the > following page:- > > http://camel.apache.org/properties.html > > which does the trick. This works if I have the full uri in my JVM argument > i.e. > > (endpointArg="mq:myQueueName") > > and in my camel route I use the PropertiesComponent class to allow me to > access the JVM arg:- > > class="org.apache.camel.component.properties.PropertiesComponent"> > > > > so that in my route I use the JVM arg as follows:- > > . > > This also works fine. However, I don't want to put the bean qualification > "mq:" in my JVM arg as this is a static property that will never change. > > So when I take the bean qualification "mq:" out of the JVM arg so that it > looks like :- > > (endpointArg="myQueueName") > > and then change my camel route so that it looks like :- > > . > > it doesn't work. > Try with . See more details at http://camel.apache.org/using-propertyplaceholder.html > Does anyone have any suggestions on how to get around this? > > Regards, > > Justin > > > > > > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/How-do-you-build-an-endpoint-string-using-a-JVM-argument-tp5723164.html > Sent from the Camel Development mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: cibsen@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen