Hi,

how do I setup CamelContext when I use Guice with the guiceyfruit JNDI
provider?

I followed this guide:
http://blog.timmattison.com/archives/2014/10/27/building-apache-camel-applications-with-guice/

Doing for example this:

InitialContext context = new InitialContext();
CamelContext camelContext = (CamelContext)
context.lookup(CamelContext.class.getName());
camelContext.setTracing(true); // no effect
camelContext.addInterceptStrategy(new Tracer()); // no effect either

has no effect. What is the proper way to do it?

There was a similar question recently:

http://camel.465427.n5.nabble.com/Where-to-do-context-setup-stuff-in-a-guice-enabled-camel-app-td5759574.html

Thanks,

Jakub

Reply via email to