Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You can also use the ANT style for inclusion and exclusion, as mentioned above in the <packageScan> documentation.

Include Page
CAMEL:how do i import routes from other xml files
CAMEL:how do i import routes from other xml files

Test time exclusion.

At test time it is often desirable to be able to selectively exclude matching routes from being initalized that are not applicable or useful to the test scenario. For instance you might a spring context file routes-context.xml and three Route builders RouteA, RouteB and RouteC in the 'org.example.routes' package. The packageScan definition would discover all three of these routes and initialize them.

...