Camel Context holds the reference of components, languages, data formats. You cannot share the direct:endpoint across the camel context.
I don’t think it’s not a good choice to create 100 camel contexts in a single JVM. Can you try to create a new route instead restart the one route? -- 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 March 11, 2015 at 11:24:34 PM, majid (mohamed.elgabbo...@peerius.com) wrote: > I finally stopping the whole camel context. > > I am wondering how costly is the operation of creation many camel contexts > (one per customer) ? > I will have around 100 camel context in my JVM, is it expensive ? or should > I use only one ? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-stop-routes-and-start-tp5763950p5764011.html > > Sent from the Camel - Users mailing list archive at Nabble.com. >