Hi I had a look and it works fine.
You are using seda queues which you are expected to have a route as input for as well So what you need is a <route> <from uri="seda:intercepted"/> <to uri="log:hey"/> </route> And then you can intercept it. See this unit test http://svn.apache.org/viewvc?rev=835928&view=rev On Wed, Nov 11, 2009 at 7:16 PM, Dragisa Krsmanovic <[email protected]> wrote: > Do interceptors work with transactions ? > > If I have transacted turned on, messages don't seem to be re-routed to > the interceptor. > > <interceptSendToEndpoint uri="seda:intercept" > skipSendToOriginalEndpoint="true"> > <to uri="mock:detour"/> > </interceptSendToEndpoint> > > <route> > <from uri="activemq:start"/> > <transacted/> > <to uri="seda:intercept"/> > <to uri="mock:end"/> > </route> > > -- > Dragisa Krsmanovic > Java Developer > Public Library of Science > http://www.plos.org > > > -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > This email is confidential to the intended recipient. If you have received it > in error, please notify the sender and delete it from your system. Any > unauthorized use, disclosure or copying is not permitted. The views or > opinions presented are solely those of the sender and do not necessarily > represent those of Public Library of Science unless otherwise specifically > stated. Please note that neither Public Library of Science nor any of its > agents accept any responsibility for any viruses that may be contained in > this e-mail or its attachments and it is your responsibility to scan the > e-mail and attachments (if any). > > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus
