camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Müller <christian.muel...@gmail.com>
Subject Re: Using advicewith to add interceptors to an existing route
Date Mon, 02 Jul 2012 16:25:02 GMT
Can you try 'jms:*' instead of '*jms:*' (if you use the protocol 'jms').
I think we only support wildcards at the end...

Best,
Christian

On Mon, Jul 2, 2012 at 6:21 PM, gilboy <josephotoole@gmail.com> wrote:

> Hi
>
> When I use the intercept feature below, is it legal to use wildchar's in
> the
> endpoint?
>
> Thanks
> Joe
>
> @Test
> public void testSimulateErrorUsingInterceptors() throws Exception {
>         RouteDefinition route = context.getRouteDefinitions().get(0);
>         route.adviceWith(context, new RouteBuilder() {
>         public void configure() throws Exception {
>         interceptSendToEndpoint("*jms:*"*)
>         .skipSendToOriginalEndpoint()
>         ..............
>         ..............
>         }
> });
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Using-advicewith-to-add-interceptors-to-an-existing-route-tp5715363.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message