Re: loadRoutesDefinition and jaxb.index

2011-05-27 Thread virgile.dev...@atosorigin.com
Hi Charles, yes that's the way i did it. I've found yesterday the solution to my problem; in the import package part of my OSGi bundle, i had to add the packages: org.apache.camel, org.apache.camel.model, org.apache.camel.model.config, org.apache.camel.model.dataformat, org.apache.camel.model.langu

Re: loadRoutesDefinition and jaxb.index

2011-05-26 Thread Charles Moulliard
Have you tried to create the process like that from(queue) .process(new Processor() { public void process(Exchange e) throws Exception { String xml = (String) e.getIn().getBody(); InputStream

Re: loadRoutesDefinition and jaxb.index

2011-05-26 Thread virgile.dev...@atosorigin.com
Charles Moulliard wrote: > > How have created your camelContext ? > The first route reads form a activemq queue. It receives the xml file and create a processor giving him the message and its camelcontext. So i do not need to create another camelcontext: DynamicRouteHandler dynamicRouteHandler

Re: loadRoutesDefinition and jaxb.index

2011-05-26 Thread Charles Moulliard
How have created your camelContext ? On Thu, May 26, 2011 at 5:10 PM, virgile.dev...@atosorigin.com wrote: > Hi Charles, > > the xml file that contains the route is dynamically created by an external > webapp. I receive this file on a jms queue through an already started route. > then this route

Re: loadRoutesDefinition and jaxb.index

2011-05-26 Thread virgile.dev...@atosorigin.com
Hi Charles, the xml file that contains the route is dynamically created by an external webapp. I receive this file on a jms queue through an already started route. then this route gives the message to a processor that will load the route from the xml file. Charles Moulliard wrote: > > Hi Virg

Re: loadRoutesDefinition and jaxb.index

2011-05-26 Thread Charles Moulliard
Hi Virgile, Why do you load the routes like and not using by example as you have a Spring XML File ? http://camel.apache.org/schema/spring";> org.apache.camel.spring.config.scan **/*Excluded* **/* or using a Regards, Charles Moulliard

loadRoutesDefinition and jaxb.index

2011-05-26 Thread virgile.dev...@atosorigin.com
Hello, I try to load a route dynamically from an xml file with camelContext.loadRoutesDefinition. Works fine from my unit test but when i tried to run my bundle in servicemix, i've got an error: Caused by: javax.xml.bind.JAXBException: "org.apache.camel.model.config" doesnt contain ObjectFactory.cl