Hi, Current interceptSendToEndpoint doesn't support the intercept the endpoint as you showed. You can check the TODO comment of the InterceptSendToEndpointDefinition[1] for detail information.
[1]https://svn.apache.org/repos/asf/camel/trunk/camel-core/src/main/java/org/apache/camel/model/InterceptSendToEndpointDefinition.java -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang Weibo: 姜宁willem On Monday, February 18, 2013 at 8:28 PM, martin11 wrote: > UPDATE: > -------------- > Intercept is not working only when I use ref to endpoint with > httpClientConfigurerRef. > > <camel:endpoint id="wsEndpoint" > uri="http://{{address}}/{{context}}?httpClientConfigurerRef=myHttpClientConfig"/> > > <camel:route id="route-1"> > ... > <camel:to ref="wsEndpoint"/> > ... > </camel:route> > > But interceptSendToEndpoint works fine if I use uri instead of endpoint ref: > <camel:route id="route-1"> > ... > <camel:to > uri="http://{{address}}/{{context}}?httpClientConfigurerRef=myHttpClientConfig"/> > ... > </camel:route> > > Why I can`t use endpoint ref together with httpClientConfigurerRef when I > want interceptSendToEndpoint in test? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Intercept-HTTP-where-I-use-httpClientConfigurerRef-tp5727569p5727730.html > Sent from the Camel - Users mailing list archive at Nabble.com > (http://Nabble.com).
