You want to use camel to intercept? You don't have to proxy straight to the endpoint. You could create a new route with a new entry point (a direct endpoint or something) that terminates at the other endpoint and put your proxy in front of that.
You could always wrap the proxy in your own dynamic proxy to do AOPish stuff to it too. On Friday, February 6, 2015, lutfijd <[email protected]> wrote: > I have a client application that uses camel proxies to communicate with the > server (through activemq), i need to intercept the messages on the client > side before they are sent to the server. > > im using spring and camel (2.9.1), i read the page on interceptors and > tried > using them (maily interceptSendToEndpoint) but unfortunately none could > intercept the messages. > > when i use interceptSendToEndpoint, i can see the following log entry > 19:29:36.405 [main] DEBUG o.a.c.m.InterceptSendToEndpointDefinition - > Endpoint interceptor should not be added as an event driven consumer route: > Channel[InterceptEndpointProcessor[*Service -> > Channel[sendTo(Endpoint[direct://InterceptHelper])]]] > > I also tried implementing an interceptionStrategy class, it also wasnt > intercepting the exchange before they are sent to the queue. > > Thanks > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Is-it-possible-to-intercept-camel-proxy-calls-tp5762472.html > Sent from the Camel - Users mailing list archive at Nabble.com. >
