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?
Yeah - we probably wanna support a List of beans. 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 -- James ------- http://macstrac.blogspot.com/ Open Source Integration http://open.iona.com
