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.

Reply via email to