Hi Willem, just would like to show that what you say is not true. I can happily first load a Spring 4 version:
feature:install -v spring/4.1.2.RELEASE_1 and then load Camel: feature:repo-add mvn:org.apache.camel.karaf/apache-camel/2.15.1/xml/features feature:install camel At this point, however, Camel feature will install the latest Spring 3 version. And you can verify yourself with bundle:requirements camel-spring to see that it resolved the 'spring' packages with 3.2.11.RELEASE and not version 4. For example: osgi.wiring.package; (&(osgi.wiring.package=org.springframework.beans)(version>=3.2.0)(!(version>=5.0.0))) resolved by: osgi.wiring.package; org.springframework.beans 3.2.11.RELEASE from org.apache.servicemix.bundles.spring-beans [83] I do believe the Camel features file needs to be modified to support Spring 4. - Martin Willem.Jiang wrote > As we doesn’t specify the spring version inside of camel feature, you need > to choice the spring version yourself inside of Karaf. If you load the > spring feature 4.0, it should work out of box. > > -- > Willem Jiang > > Red Hat, Inc. > Web: http://www.redhat.com > Blog: http://willemjiang.blogspot.com (English) > http://jnn.iteye.com (Chinese) > Twitter: willemjiang > Weibo: 姜宁willem > > > > On April 3, 2015 at 11:26:55 PM, Martin Lichtin ( > lichtin@.com > ) wrote: >> Using Camel 2.15.1 and CXF 3.0.4 in a Karaf container, I'm wondering how >> one can control the Spring version. >> Camel feature "camel-spring" loads Spring with >> >> spring >> >> which will result in loading 3.2.11.RELEASE. >> >> Is there a way to use Spring 4? >> >> - Martin >> >> >> -- View this message in context: http://camel.465427.n5.nabble.com/Karaf-with-Camel-2-15-1-CXF-3-0-4-which-Spring-versions-can-be-used-tp5765283p5765377.html Sent from the Camel - Users mailing list archive at Nabble.com.