It depends on if you are on an OSGi container or not. If you are, you could initialise your JmsComponents on a single bundle and export them as an OSGi Service. Then import them into the route bundles with an ID that matches the prefix you want to use for the endpoints.
If you're not on OSGi, take a look at Camel Contexts and RouteBuilderRef. It might be what you're after [1]. [1] http://camel.apache.org/spring.html P. S.: Please continue responding on users@ only. (remove dev@). Thanks. Sent from a mobile device On Sep 25, 2012 8:29 AM, "Claus Ibsen" <claus.ib...@gmail.com> wrote: > Hi > > Please use the @user mailing list for this kind of questions. > > See the blue box on this page about that > http://camel.apache.org/mailing-lists.html > > > > On Mon, Sep 24, 2012 at 8:49 PM, rajivbandaru <rajivband...@gmail.com> > wrote: > > Hi, we are dealing with this situation and any clue on this would be > helpful. > > here is the problem statement: > > > > We route several jms messages to various jms endpoints, and each endpoint > > could be a different jms provider, such as tibco, weblogic, activemq > etc. in > > addition, we have several routes using the same jms providers to route > jms > > messages. so the same list of jms providers need to be listed in every > > camel-context in every route. is there a global camel context that we > could > > list all the jms providers and refer to that global camel context in all > the > > routes? > > > > Thank you very much. > > > > > > > > > > -- > > View this message in context: > http://camel.465427.n5.nabble.com/Global-Camel-Context-tp5719870.html > > Sent from the Camel Development mailing list archive at Nabble.com. > > > > -- > Claus Ibsen > ----------------- > Red Hat, Inc. > FuseSource is now part of Red Hat > Email: cib...@redhat.com > Web: http://fusesource.com > Twitter: davsclaus > Blog: http://davsclaus.com > Author of Camel in Action: http://www.manning.com/ibsen >