Can you post the code showing...? a) how you add the bean. b) how you construct the endpoint URI from within the "MongoConnection" class' dynamic router method.
Regards, *Raúl Kripalani* Apache Camel PMC Member & Committer | Enterprise Architect, Open Source Integration specialist http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani http://blog.raulkr.net | twitter: @raulvk On Tue, Aug 26, 2014 at 12:44 PM, Andrei Stoica < andrei.ionut.sto...@gmail.com> wrote: > I tried adding the bean in the existing camel context like this: > > from("jms:...") > .process(new Processor() { > > @Override > public void process(Exchange exchange) throws Exception { > // add bean to context using getContext() method > } > ) > .dynamicRouter(method(MongoConnection.class)) // in the MongoConnection > class I am using the bean added above > > When I run the code I get a warning that the bean is not found in the > Registry. > > Am I doing it right? Should I add the bean to the registry somewhere else? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/mongoDB-uri-tp5755565p5755694.html > Sent from the Camel - Users mailing list archive at Nabble.com. >