According the pom.xml files in the central maven repo, camel 2.3.0 was the last spring 2.5.x compatible release:
http://repo1.maven.org/maven2/org/apache/camel/camel-parent/2.3.0/camel-parent-2.3.0.pom If you step up one, and go look at the camel-parent-2.4.0.pom http://repo1.maven.org/maven2/org/apache/camel/camel-parent/2.4.0/camel-parent-2.4.0.pom you'll see spring was moved up to 3.x Bummer... -----Original Message----- From: Davis Ford [mailto:[email protected]] Sent: Friday, September 16, 2011 2:05 PM To: [email protected] Subject: RE: camel 2.8.0 with spring 2.5.6? One quick note on this: Claus states in this thread: http://camel.465427.n5.nabble.com/Camel-and-Spring-in-2-3-td489072.html "Camel 2.x is compatible with Spring 2.0.x, Spring 2.5.x and Spring 3.0.x as well. However Spring 2.5.6 is the release which is being used by default. I anticipate Camel 3.0 will be Spring 3.0+ only and JDK1.6+ only as well." However, I downgraded everything to spring 2.5.6 and tried each of camel 2.7.3, 2.7.2, and 2.7.1 and it doesn't work because of the same error noted in the thread linked above: java.lang.NoSuchMethodError: org.springframework.jms.listener.DefaultMessageListenerContainer.setTaskExecutor(Ljava/util/concurrent/Executor;)V at org.apache.camel.component.jms.JmsEndpoint.configureListenerContainer(JmsEndpoint.java:189) at org.apache.camel.component.jms.JmsEndpoint.createConsumer(JmsEndpoint.java:213) at org.apache.camel.component.jms.JmsEndpoint.createConsumer(JmsEndpoint.java:157) at org.apache.camel.component.jms.JmsEndpoint.createConsumer(JmsEndpoint.java:67) at org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenConsumerRoute.java:61) at org.apache.camel.impl.DefaultRoute.onStartingServices(DefaultRoute.java:75) at org.apache.camel.impl.RouteService.warmUp(RouteService.java:128) I cannot seem to get camel 2.x to play nicely with spring 2.5.6. I have an integration test that loads the spring context, including the camel-context, JMS activemq instance, and posts a message to it with the ProducerTemplate -- this is when the exception above is encountered. -----Original Message----- From: Davis Ford [mailto:[email protected]] Sent: Friday, September 16, 2011 1:37 PM To: [email protected] Subject: RE: camel 2.8.0 with spring 2.5.6? Thanks Brendan - that link seems to imply that you must have spring 3.x for camel-spring-ws -- which I am *not* using. It would be great if I could use a camel 2.8.x release with spring 2.5.6. Again, I'm using camel-spring, camel-core, and camel-jms along with activemq. I guess I just have to try it, update all the versions, do the builds and run all the tests, and see what falls out. Thanks... Davis -----Original Message----- From: Brendan Long [mailto:[email protected]] Sent: Friday, September 16, 2011 12:57 PM To: [email protected] Subject: Re: camel 2.8.0 with spring 2.5.6? According to this page: https://camel.apache.org/spring-web-services.html Camel 2.8 requires Spring 3, so just pick a version before that. I think 2.7.3 is the newest you can use: https://camel.apache.org/camel-273-release.html
