Hi,

I think you misunderstand some concept of JBI Component/SharedLib/SA/ SU or the classloader how JBI works, please take a look at [1] to get more details. I can't understand what you mean by "Shared libraries service unit pom", as in per JBI spec, the SharedLib shouldn't has any service unit, it just referred by the JBI component, like servicemix-camel, all servicemix JBI component only refer one default SharedLib which name is servicemix-shared. Class org.apache.commons.dbcp.BasicDataSource is from commons- dbcp.jar but the commons-dbcp.jar isn't in the smx3.x default sharedlib servicemix-shared-${version}-installer.zip, so it means by default all servicemix-camel su can't see this class unless you explicitly add <library>your_shared_lib_name</library> in your SU's xbean.xml, [1] "New in ServiceMix 3.2" part has more details.

[1]http://servicemix.apache.org/classloaders.html

Freeman
On 2012-1-6, at 下午8:42, ovidiu barb wrote:

I posted this question on stackoverflow, but i got no answer. Please see the
subject below:

http://stackoverflow.com/questions/8727990/how-to-integrate-servicemix-shared-libraries-using-jbi-maven-plugin

--
View this message in context: 
http://servicemix.396122.n5.nabble.com/How-to-integrate-servicemix-shared-libraries-using-jbi-maven-plugin-tp5125417p5125417.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

---------------------------------------------
Freeman Fang

FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com









Reply via email to