camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "virgile.devaux@atosorigin.com" <virgile.dev...@atosorigin.com>
Subject Re: loadRoutesDefinition and jaxb.index
Date Thu, 26 May 2011 15:10:50 GMT
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 Virgile,
> 
> Why do you load the routes like and not using by example as you have a
> Spring XML File ?
> 
>     <camelContext id="camelScan"
> xmlns="http://camel.apache.org/schema/spring">
>         <packageScan>
>             <package>org.apache.camel.spring.config.scan</package>
>             <excludes>**/*Excluded*</excludes>
>             <includes>**/*</includes>
>         </packageScan>
> 
> or using a <routeBuilder/>
> 
> Regards,
> 
> Charles Moulliard
> 
> Sr. Principal Solution Architect - FuseSource
> Apache Committer
> 
> Blog : http://cmoulliard.blogspot.com
> Twitter : http://twitter.com/cmoulliard
> Linkedin : http://www.linkedin.com/in/charlesmoulliard
> Skype: cmoulliard
> 
> 
> 
> On Thu, May 26, 2011 at 4:44 PM, virgile.devaux@atosorigin.com
> &lt;virgile.devaux@atosorigin.com&gt; wrote:
>> 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.class or jaxb.index
>>
>> I check the camel-core jar included in the service-mix
>> (D:\apache-servicemix-4.3.1-fuse-01-15\system\org\apache\camel\camel-core\2.6.0-fuse-01-15\camel-core-2.6.0-fuse-01-15.jar)
>> and it contains org\apache\camel\model\config\jaxb.index.
>>
>> Now i'm stuck. Can anybody gives me a hint?
>>
>>
>> --
>> View this message in context:
>> http://camel.465427.n5.nabble.com/loadRoutesDefinition-and-jaxb-index-tp4428835p4428835.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
> 


--
View this message in context: http://camel.465427.n5.nabble.com/loadRoutesDefinition-and-jaxb-index-tp4428835p4428921.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message