On Fri, Jul 8, 2011 at 10:46 AM, Andrè <[email protected]> wrote: > the first one callled through a proxy, and the second is called directly in > my unitests > > like > String response = (String) > inputEndpoint.requestBody("direct:injectRequest",getFileContent("src/main/resources/requests/request.xml")); > > the problem is, that sometimes this sAuthZBlocked should block, the first > route (proxy)works, but while testing the second, the bean doesnt block, any > ideas why this is working in route 1 and not in 2? > is it something with the direct:component ? >
What do you mean by "should block" ? > > </route> > <route> > <from uri="direct:OtherAuthZWrapper"/> > <to uri="bean:isAuthZBlocked?method=checkRequest"/> > <doTry> > <to uri="bean:OtherAuthZServiceImpl?method=evalRequest"/> > <doCatch> > <exception>org.apache.camel.RuntimeCamelException > </exception> > <process ref="ExceptionDeWrapper"/> > </doCatch> > </doTry> > </route> > <route> > <from uri="direct:injectRequest"/> > <to uri="bean:isAuthZBlocked?method=checkRequest"/> > <doTry> > <to > uri="activemq:topic:services.global.xacml.authzRequests?transferException=true"/> > <doCatch> > <exception>org.apache.camel.RuntimeCamelException > </exception> > <process ref="ExceptionDeWrapper"/> > </doCatch> > </doTry> > </route> > > -- > View this message in context: > http://camel.465427.n5.nabble.com/whats-the-difference-between-these-routes-tp4563945p4563945.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
