Pasting your java code where you boot up your Spring-IOC-Container would make
it easier to answer your question. How do you run/deploy your Camel context?
Standalone, inside a JEE-Container or inside Karaf?

It seems to me as if something is wired there. But basically you don't have
to assign ids to your Camel Contexts, as Spring assigns ids to it's managed
POJOs (CamelContext is one of them) automatically if not already explicitly
specified [1].

Using ClassPathXmlApplicationContext [2] or FileSystemXmlApplicationContext
[3] you should be able to provide multiple Spring resources while booting-up
Spring, see also [4] for some examples.


[1]
http://static.springsource.org/spring/docs/3.0.6.RELEASE/spring-framework-reference/html/beans.html#beans-beanname
[2]
http://static.springsource.org/spring/docs/3.0.6.RELEASE/javadoc-api/org/springframework/context/support/ClassPathXmlApplicationContext.html
[3]
http://static.springsource.org/spring/docs/3.0.6.RELEASE/javadoc-api/org/springframework/context/support/FileSystemXmlApplicationContext.html
[4]
http://static.springsource.org/spring/docs/3.0.6.RELEASE/spring-framework-reference/html/resources.html#resources-app-ctx-construction
[4] http://camel.apache.org/spring-example.html

Babak

--
View this message in context: 
http://camel.465427.n5.nabble.com/Loading-two-camel-context-files-at-start-tp5049449p5049859.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to