[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: How to use InterceptSendToEndpoint from Java DSL

Thanks so much for responding.  It is awesome to have someone of your caliber answering my questions!

> Ah okay yeah you can have it in one route builder, where you can have
> all your interceptors. Then during startup it will re-register any
> existing endpoints with itself so it can proxy/detour.

My initial attempt was to create a RouteBuilder and in the configure method call the interceptSendToEndpoint() method a few times.

      camelContext.addRoutes(new RouteBuilder() {
               public void configure()
               throws Exception {
However, the queued-interceptor route was never fired when a message was posted to activemq.
So I assumed that those interceptors were not acting beyond the context of the route.

( ! ) Warning: include(msgfooter.php): failed to open stream: No such file or directory in /var/www/git/apache-camel-users/msg03376.html on line 89
Call Stack
10.0007358376{main}( ).../msg03376.html:0

( ! ) Warning: include(): Failed opening 'msgfooter.php' for inclusion (include_path='.:/var/www/git') in /var/www/git/apache-camel-users/msg03376.html on line 89
Call Stack
10.0007358376{main}( ).../msg03376.html:0