You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Glen Mazza <gl...@gmail.com> on 2010/08/26 21:04:57 UTC

location of camel-context.xml file

Hello, for a Mavenized camel project, is there a difference between 
placing it directly under the resources folder compared to 
resources/META-INF/spring folder (in terms of convenience or default 
detection by the Camel runtime)?  The Camel in Action book and Maven 
camel-archetype-java archetype do the latter, I was just wondering why.

Thanks,
Glen


Re: location of camel-context.xml file

Posted by Willem Jiang <wi...@gmail.com>.
Hi Glen,

Spring will load the application context from the folder 
"resources/META-INF/spring" by default, so Camel just follow this rule :).

camel:run maven plugin supports to load the camel context from other 
place by using the option "camel.fileApplicationContextUri" or 
"camel.applicationContextUri", but if you deploy the camel context into 
OSGi, the Spring DM still try to load it from "META-INF/spring".

Willem

Glen Mazza wrote:
> Hello, for a Mavenized camel project, is there a difference between 
> placing it directly under the resources folder compared to 
> resources/META-INF/spring folder (in terms of convenience or default 
> detection by the Camel runtime)?  The Camel in Action book and Maven 
> camel-archetype-java archetype do the latter, I was just wondering why.
> 
> Thanks,
> Glen
> 
>