...
Info | ||
---|---|---|
| ||
If you are using JBoss 4.x/5.x then you need to use |
The resolver is provided in the class org.apacheapacheextras.camel.jboss.JBossPackageScanClassResolver
in the camel-jboss
jar file.
Info | ||
---|---|---|
| ||
From Camel 2.8 onwards there is no longer the need for using this camel-jboss component as Camel is now capable of loading type converters without package scanning. This requires though that all 3rd party components with type converter must define the name of the converter classes as FQN in the |
Using with Java DSL
You need to configure the resolver on the CamelContext which is done like this:
...
Code Block | ||||
---|---|---|---|---|
| ||||
<bean id="jbossResolver" class="org.apachextraapacheextras.camel.jboss.JBossPackageScanClassResolver"/> <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring"> <route> <from uri="seda:start"/> <to uri="mock:result"/> </route> </camelContext> |
The Camel Extra project was moved to an official associated Apache site and as part of the migration the package names in the source code must not use org.apache
so we renamed the packages as shown above. But if you are using the older versions of the JAR files then you need to use as shown below:
...