Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 58494 invoked from network); 1 Apr 2010 13:47:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Apr 2010 13:47:48 -0000 Received: (qmail 89908 invoked by uid 500); 1 Apr 2010 13:47:48 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 89884 invoked by uid 500); 1 Apr 2010 13:47:48 -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 89875 invoked by uid 99); 1 Apr 2010 13:47:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Apr 2010 13:47:48 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.218.223 as permitted sender) Received: from [209.85.218.223] (HELO mail-bw0-f223.google.com) (209.85.218.223) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Apr 2010 13:47:42 +0000 Received: by bwz23 with SMTP id 23so958792bwz.36 for ; Thu, 01 Apr 2010 06:47:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:received:message-id:subject:to:content-type :content-transfer-encoding; bh=B9K90rVlUGkt6wJx9npKx7GmhXkSPCC5th5w9X/0BqE=; b=hw8Rq29+xiCCGH9Syr3Bz7rLGPz9756KQ+jK/N0xQiaZmASCWY5ONC5EK98mSDfxmQ 2AO0mfMPYrd/uiS7QjU9ZOYCA7daOs/wXiKk1i35gYIgPniCWbGmbBRo5CF8p5rFwir8 J0HB1yrvOIY62oKm46QGw7m9n/cdOWuQ0tM5I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=nKL1F01B9dLSR6baJTHQNnZwh7aScLqNjQMKqZJeUDVggUQouAiINrNRMsGjPKo8mI GOxaZu7lGznEDLehdCGXo9ceJo4VhZRbSQdZkLour9dZUsDI3/yZ7XG22Xz2mN/cnnw/ mht+r8Auv/a+hEA5KH37Y9cAPQuRZ5+vduMsw= MIME-Version: 1.0 Received: by 10.204.59.137 with HTTP; Thu, 1 Apr 2010 06:47:02 -0700 (PDT) In-Reply-To: <28107793.post@talk.nabble.com> References: <27850826.post@talk.nabble.com> <5380c69c1003100759q64fe8228ga57c403d072c748@mail.gmail.com> <28107793.post@talk.nabble.com> From: Claus Ibsen Date: Thu, 1 Apr 2010 15:47:02 +0200 Received: by 10.204.18.131 with SMTP id w3mr1425908bka.16.1270129642168; Thu, 01 Apr 2010 06:47:22 -0700 (PDT) Message-ID: Subject: Re: Add Routes via XML after context is loaded To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi What runtime do you use? container, OS, JDK version etc. Its most likely an issue there sine Camel cannot load dynamically its type converters. On Thu, Apr 1, 2010 at 3:44 PM, kumaap0 wr= ote: > > Hi That worked except in the case for doing something like this > > =A0 uri=3D"jms:FPML.IN?concurrentConsumers=3D20,transacted=3Dtrue,jmsMessageT= ype=3DText"/> > > you get the exception > > Caused by: java.lang.IllegalArgumentException: Could not find a suitable > setter for property: concurrentConsumers as there isn't a setter method w= ith > same type: java.lang.String nor type conversion possible: No type convert= er > available to convert from type: java.lang.String to the required type: in= t > with value 20,transacted=3Dtrue,jmsMessageType=3DText > =A0 =A0 =A0 =A0at > org.apache.camel.util.IntrospectionSupport.setProperty(IntrospectionSuppo= rt.java:250) > =A0 =A0 =A0 =A0at > org.apache.camel.util.IntrospectionSupport.setProperties(IntrospectionSup= port.java:200) > =A0 =A0 =A0 =A0at > org.apache.camel.util.EndpointHelper.setProperties(EndpointHelper.java:16= 4) > =A0 =A0 =A0 =A0at > org.apache.camel.impl.DefaultComponent.setProperties(DefaultComponent.jav= a:237) > =A0 =A0 =A0 =A0at > org.apache.camel.component.jms.JmsComponent.createEndpoint(JmsComponent.j= ava:450) > =A0 =A0 =A0 =A0at > org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.ja= va:80) > =A0 =A0 =A0 =A0at > org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext= .java:425) > > > It seems when you marshalling you own RouteDefinition there some step i'm > missing you can only specify string properties , any ideas? > > > Claus Ibsen-2 wrote: >> >> Hi >> >> You can use the Camel API to create routes on the fly. >> It should be able to parse the XML as well as its JAXB annotated in >> camel-core. >> >> For example camel web console allows you to add / edit routes in XML at >> runtime. >> >> And there is also a REST API to add/edit routes as well. >> http://camel.apache.org/web-console.html >> >> This topic is probably something we would add in chapter 14 in the >> Camel in Action book. >> But we have an open discussion for feedback for readers, to what they >> would like >> http://www.manning-sandbox.com/forum.jspa?forumID=3D601 >> >> >> >> On Wed, Mar 10, 2010 at 3:58 PM, kumaap0 >> wrote: >>> >>> Hi Im wondering if its possible to start the camel context, then load >>> routes >>> declared in camels(xml dsl). >>> Main reason i need this is we do not know our routes at runtime they wi= ll >>> be >>> added afterwards, i know i can do this through code but it would be nic= e >>> if >>> a user could just upload a routes and they would just get added to the >>> current runtime. >>> >>> Cheers >>> -- >>> View this message in context: >>> http://old.nabble.com/Add-Routes-via-XML-after-context-is-loaded-tp2785= 0826p27850826.html >>> Sent from the Camel - Users mailing list archive at Nabble.com. >>> >>> >> >> >> >> -- >> Claus Ibsen >> Apache Camel Committer >> >> Author of Camel in Action: http://www.manning.com/ibsen/ >> Open Source Integration: http://fusesource.com >> Blog: http://davsclaus.blogspot.com/ >> Twitter: http://twitter.com/davsclaus >> >> > > -- > View this message in context: http://old.nabble.com/Add-Routes-via-XML-af= ter-context-is-loaded-tp27850826p28107793.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > --=20 Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus