You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Jeremy Norris (JIRA)" <ji...@apache.org> on 2010/06/03 09:33:51 UTC
[jira] Updated: (CAMEL-2787) camel:packageScan doesn't work for
spring @Components
[ https://issues.apache.org/activemq/browse/CAMEL-2787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jeremy Norris updated CAMEL-2787:
---------------------------------
Attachment: spring-integration-testcase.tar.gz
The following test case illustrates the problem.
The test case currently is running using <camel:routeBuilder ref="routeBuilderFoo"/>. Comment this out and uncomment the <packageScan> portion to see the test break. (The test breaks by reporting that no routes could be found).
> camel:packageScan doesn't work for spring @Components
> -----------------------------------------------------
>
> Key: CAMEL-2787
> URL: https://issues.apache.org/activemq/browse/CAMEL-2787
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-spring-integration
> Affects Versions: 2.3.0
> Environment: MacOSX 10.6.3, Java 1.6.0_20
> Reporter: Jeremy Norris
> Attachments: spring-integration-testcase.tar.gz
>
>
> When a route builder is defined using @Component, I have to reference is as follows:
> <camelContext xmlns="http://camel.apache.org/schema/spring">
> <routeBuilder ref="routeBuilderFoo"/>
> </camelContext>
> Should I not be able to use the following instead?
> <packageScan>
> <package>org.jnorris.camel</package>
> </packageScan>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.