camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yogu13 <yog...@gmail.com>
Subject Re: Camel2.17: No bean could be found in the registry
Date Mon, 09 May 2016 06:57:25 GMT
Hi,

I am assuming you are using the same context which has the registry bound
"CamelContext context = new DefaultCamelContext(registry);"

you can add routes to the context as below 

context.addRoutes(new RouteBuilder() {
      @Override
      public void configure() {
             from("jetty://http://localhost:8888/").log("Received a
request").transform().simple("${bean:myBean}");
    }
});
context.start();



--
View this message in context: http://camel.465427.n5.nabble.com/Camel2-17-No-bean-could-be-found-in-the-registry-tp5782311p5782349.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message