On 18/01/2008, James Strachan <[EMAIL PROTECTED]> wrote: > On 18/01/2008, Roman Kalukiewicz <[EMAIL PROTECTED]> wrote: > > > A RouteBuilder is not necessarily gonna be XML marshallable via JAXB; > > > so we might just wanna refer to RouteBuilder instances by ID in the > > > XML. > > > > I believe we should allow this in namespace notation. > > > > But just to solve Dominic's problem maybe instead of creating our > > context via <camelContext> we could simply do > > > > <bean class="org.apache.camel.spring.CamelContextFactoryBean"> > > <property name="routeBuilder" ref="myConfiguredBuilder/> > > </bean> > > > > It should work, shouldn't it?
Sorry - I'd not looked at the code in a while - yes that should totally work. It supports a single route builder, or a list of route builders. > Yeah - we probably wanna support a List of beans. We already do - DOH! > It'd be nice to also have a namespaced XML alternative as well. > > <camelContext ... > > <routeBuilderRef ref="foo"/> > <routeBuilderRef ref="bar"/> > ... > </camelContext> > > under the covers they can do the same thing, set a List<RouteBuilder> > on the factory bean that are then registered with the CamelContext Am just adding this now... -- James ------- http://macstrac.blogspot.com/ Open Source Integration http://open.iona.com
