|
Page Created :
CAMEL :
How to use extra camel componets in servicemix-camel
How to use extra camel componets in servicemix-camel has been created by willem jiang (Feb 24, 2009). Content:Since Servicemix3's component has same hierarchies of the class loaders with the J2EE application server, and the components the class loader is separated with the SU's. And Camel has lots of components, we just include the camel-core and camel-spring components in the servicemix-camel by default. When the user want to use other camel component, they always add the camel-xxx component into their SU lib. You may meet an issue of the class cast exception when deploying the same servicemix-camel component SU twice. In this case, when the SU is redeployed, it will create a new deployer which will create an application context with the class loader of servicemix-camel component, and then using the SU's class loader to create a camel context. Note, In Servicemix4's camel component , we will not get that kind of issue , since the OSGi will help us to manage the relationship of the jars. The solution is putting the camel-xxx components and third part jars into servicemix-camel component's lib. You need to check out the servicemix-camel component's pom.xml and recompile the servicemix-camel component by adding the camel-xxx component dependency. Let me take the latest servicemix-camel as an example 1. Checking out the servicemix-camel component's pom svn co http://svn.apache.org/repos/asf/servicemix/components/engines/servicemix-camel/trunk/pom.xml
|
Unsubscribe or edit your notifications preferences
