[
https://issues.apache.org/jira/browse/CAMEL-5629?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13460481#comment-13460481
]
Amit Patel commented on CAMEL-5629:
-----------------------------------
I need to add InterceptDefinition to CamelContext using addInterceptDefinition
method. I don't find this method in camelContext class. I don't find this in
document also. It shows I can add interceptFrom in camelContext xml, but i
don't found it allow to add using camelContext class. Please let me know if you
have any questions or need more information.
> 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
> Assignee: Claus Ibsen
> Priority: Minor
> 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