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 2019/06/04 05:26:00 UTC

[jira] [Commented] (CAMEL-13608) camel-spring-boot - Add option to include/exclude routes based on their ids

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

Claus Ibsen commented on CAMEL-13608:
-------------------------------------

You can now configure both an include and exclude patterns, that filters by route id, and from route input uri, such as

{code}
@SpringBootTest(classes = RouteFilterExcludePatternTest.class,
    properties = {"camel.springboot.route-filter-exclude-pattern=foo*,drink*"})

@SpringBootTest(classes = RouteFilterIncludePatternTest.class,
    properties = {"camel.springboot.route-filter-include-pattern=bar*"})
{code}

Also you can filter out all routes that start from JMS via

{code}
@SpringBootTest(classes = RouteFilterExcludePatternTest.class,
    properties = {"camel.springboot.route-filter-exclude-pattern=jms:*"})
{code}

> camel-spring-boot - Add option to include/exclude routes based on their ids
> ---------------------------------------------------------------------------
>
>                 Key: CAMEL-13608
>                 URL: https://issues.apache.org/jira/browse/CAMEL-13608
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-spring-boot
>            Reporter: Claus Ibsen
>            Priority: Major
>             Fix For: 3.0.0
>
>
> So you can for example do an unit test where you want to only test a specific route and then filter out everyone else. Currently you can filter on route builder and xml files level, but not on route ids.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)