Versions Compared

Key

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

...

Code Block
xml
xml
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="
          http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
          http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">

...

Code Block
xmlns:camel="http://activemqcamel.apache.org/camel/schema/spring"

... so the declaration is:

...

Code Block
xml
xml
  <camelContext xmlns="http://activemqcamel.apache.org/camel/schema/spring">
    <package>org.apache.camel.spring.config.scan.route</package>
  </camelContext>

...

Info
titleWill ignore already instantiated classes

The <package> and <packageScan> will skip any classes which has already been created by Spring etc. So if you define a route builder as a spring bean tag then that class will be skipped. You can include those beans using <routeBuilder ref="theBeanId"/> or the <contextScan/> <contextScan> feature.

Using <packageScan>

...