You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2012/09/21 08:49:07 UTC

[jira] [Commented] (CAMEL-5629) CamelContext should allow to add intercept defination at runime

    [ https://issues.apache.org/jira/browse/CAMEL-5629?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13460285#comment-13460285 ] 

Claus Ibsen commented on CAMEL-5629:
------------------------------------

See this page for examples with interceptFrom
http://camel.apache.org/intercept
                
> CamelContext should allow to add intercept defination at runime
> ---------------------------------------------------------------
>
>                 Key: CAMEL-5629
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5629
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-core
>    Affects Versions: 2.10.1
>            Reporter: Amit Patel
>            Priority: Critical
>             Fix For: 2.11.0
>
>
> CamelContext allows to add InterceptStrategy not InterceptFromDefinition.
> To add below intercept xml to camelContext, I need to add InterceptDefinition to CamelContext. I don't find any add method for InterceptDefinition just like addRouteDefinitions and addRouteDefinition.
> InterceptDefinition 
> ======================== 
> <interceptFrom xmlns="http://camel.apache.org/schema/spring" >
>           <when>
>           <groovy> return exchange.fromRouteId == 'test.hello.restlet.1.0' </groovy>
>         </when>
>         <to uri="direct:test.intercepter.v1"/>
>     </interceptFrom>"""

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira