THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
import org.apache.camel.guice.CamelModuleWithMatchingRoutes; import public class MyModule extends CamelModuleWithMatchingRoutes { @Provides @JndiBind("foo") Collection<RouteBuilder> foo(@Named("fooUrl") String fooUrl) { return Lists.newArrayList(new MyRouteBuilder(fooUrl), new MyRouteBuilder("activemq:CheeseQueue")); } } |
...
See Also
...
- there are a number of Examples you can look at to see Guice and Camel being used such as
...
- Guice JMS Example
- Guice Maven Plugin for running your Guice based routes via Maven