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
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
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
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
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
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
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