camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CAMEL-2787) camel:packageScan doesn't work for spring @Components
Date Thu, 03 Jun 2010 07:39:51 GMT

     [ https://issues.apache.org/activemq/browse/CAMEL-2787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen updated CAMEL-2787:
-------------------------------

    Component/s: camel-spring
                     (was: camel-spring-integration)

I wonder if packageScan can support lookup classes in the classpath and have those being created
and handled by Spring since you added the @Component.

Usually you need to add some Spring XML stuff as well to tell Spring to look for annotation
enhanced classes. (annotation-driven) or something like that

> 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
>    Affects Versions: 2.3.0
>         Environment: MacOSX 10.6.3, Java 1.6.0_20
>            Reporter: Jeremy Norris
>            Assignee: Claus Ibsen
>         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.


Mime
View raw message