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 ? 


   </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.

Reply via email to