If you don’t want to common camel-context be load multiple times, you can just deploy it in a single war. If you just want to reuse the route definition, you can take a look this FAQ[1] using the routeContext to do that kind of job.
[1]http://camel.apache.org/how-do-i-import-routes-from-other-xml-files.html -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On May 7, 2015 at 6:00:06 PM, sureshsg (suresh.s...@gmail.com) wrote: > Hi I have 3 wars running on a single tomcat instance. Each of the war has a > spring application context and camel-context.xml. Again each of the war has > a common library. This common library also has camel-context.xml. The error > is common library's camel-context is getting loaded multiple times and > resulting in multiple consumers for an endpoint. > > I am using contextScan to load the routes and have also tried specifying the > includes package but did not work. > > Could you please help? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/camel-context-xml-getting-loaded-multiple-times-tp5766803.html > > Sent from the Camel - Users mailing list archive at Nabble.com. >