In my camel RouteConfig.java I am not able to connect to mongo database. I get the following exception : Caused by: org.apache.camel.NoSuchBeanException: No bean could be found in the registry for: myDb of type: com.mongodb.Mongo at org.apache.camel.util.CamelContextHelper.mandatoryLookup(CamelContextHelper.java:130) at org.apache.camel.component.mongodb.MongoDbComponent.createEndpoint(MongoDbComponent.java:43) at org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:91) at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:461) ... 42 more
RouteConfig.java from("jms:queue:Test").bean(new SomeBean()).to("mongodb:mydb=flights&collection=tickets&operation=insert");
camel-context.xml
Any help is appreciated
thanks Lokesh