Re: location of camel-context.xml file

2010-08-26 Thread Willem Jiang

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






location of camel-context.xml file

2010-08-26 Thread Glen Mazza
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