camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "fabrizio.spataro" <fabrizio.spat...@bizmate.it>
Subject Re: Interceptor into external file
Date Thu, 10 Sep 2015 15:13:48 GMT
Ok thanks, my (temporary?) implementation is:

FILE 1:
<routeContext id="interceptorRouteContext">
<route>
        <from uri="direct://interceptorImpl"/>
                             ........... MY CODE ...... 
                             ........... MY CODE ...... 
                             ........... MY CODE ...... 
                             ........... MY CODE ...... 
</route>

</routeContext>

MAIN FILE:

<camelContext xmlns="http://camel.apache.org/schema/spring"
errorHandlerRef="deadLetterErrorHandler">

		*<routeContextRef ref="interceptorRouteContext"/>*
                             ........... ANOTHER CODE ...... 
                             ........... ANOTHER CODE ...... 

                <interceptFrom uri="direct://ABC*">
                            <to uri="direct://interceptorImpl" />
                </interceptFrom>

                             ........... ANOTHER CODE ...... 
                             ........... ANOTHER CODE ...... 
                             ........... ANOTHER CODE ...... 

</camelContext>



--
View this message in context: http://camel.465427.n5.nabble.com/Interceptor-into-external-file-tp5771400p5771410.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message