Ignore i was doing something stupid the options seperator is a &
<from uri="jms:FPML.IN?concurrentConsumers=20&transacted=true&jmsMessageType=Text"/> kumaap0 wrote: > > Hi That worked except in the case for doing something like this > > <from > uri="jms:FPML.IN?concurrentConsumers=20,transacted=true,jmsMessageType=Text"/> > > 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 > with same type: java.lang.String nor type conversion possible: No type > converter available to convert from type: java.lang.String to the required > type: int with value 20,transacted=true,jmsMessageType=Text > at > org.apache.camel.util.IntrospectionSupport.setProperty(IntrospectionSupport.java:250) > at > org.apache.camel.util.IntrospectionSupport.setProperties(IntrospectionSupport.java:200) > at > org.apache.camel.util.EndpointHelper.setProperties(EndpointHelper.java:164) > at > org.apache.camel.impl.DefaultComponent.setProperties(DefaultComponent.java:237) > at > org.apache.camel.component.jms.JmsComponent.createEndpoint(JmsComponent.java:450) > at > org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:80) > at > 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=601 >> >> >> >> On Wed, Mar 10, 2010 at 3:58 PM, kumaap0 <amitesh.ku...@standardbank.com> >> 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 >>> will be >>> added afterwards, i know i can do this through code but it would be nice >>> 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-tp27850826p27850826.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-after-context-is-loaded-tp27850826p28107796.html Sent from the Camel - Users mailing list archive at Nabble.com.