Versions Compared

Key

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

...

Warning

Use caution when specifying the package name as org.apache.camel or a sub package of this. This causes Camel to search in its own packages for your routes which could cause problems.

Warning
package is @deprecatedpackage is @deprecated

The <package> tag has been @deprecated and replaced with the more powerful <packageScan> tag. See below.
It will remain in Camel 2.x but will be removed in Camel 3.0

Using <packageScan>

Using <packageScan>

In Camel 2.0 In 2.X this has been extended to allow selective inclusion and exclusion of discovered route classes using Ant like path matching. In spring this is specified by adding a <packageScan/> tag. The tag must contain one or more 'package' elements (similar to 1.x), and optionally one or more 'includes' or 'excludes' elements specifying patterns to be applied to the fully qualified names of the discovered classes. e.g.

...

Under the covers, this is using Spring's AntPatternMatcher implementation, which matches as follows

...