Hi
If you take a look at the code of CorePackageScanClassResolver you will
find the the packages which are returned will not be scanned.
On 2/13/12 6:10 PM, David Delbecq wrote:
Here i what i see in sources of camel-core-2.9.0
package org.apache.camel.impl.converter;
import java.io.IOException;
/**
* Will load all type converters from camel-core without classpath scanning,
which makes
* it much faster.
*<p/>
* The {@link CorePackageScanClassResolver} contains a hardcoded list of the
type converter classes to load.
*/
public class CoreTypeConverterLoader extends AnnotationTypeConverterLoader {
public CoreTypeConverterLoader() {
super(new CorePackageScanClassResolver());
}
@Override
protected String[] findPackageNames() throws IOException {
return new String[]{"org.apache.camel.converter", "org.apache.camel.component.bean",
"org.apache.camel.component.file"};
}
}
so, yes, it's looking for "org.apache.camel.converter " in 2.9.0
----- Mail original -----
De: "Willem.Jiang"<willem.ji...@gmail.com>
À: users@camel.apache.org
Envoyé: Vendredi 10 Février 2012 04:25:43
Objet: Re: camel and spring in a webapp
Hi,
Camel does not try to load the annotated Converter from package of
'org.apache.camel.converter' since Camel 2.8.0.
Can you check if you wrap the other version of camel into your war ?
--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang