camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: camel 2.8.0 with spring 2.5.6?
Date Sat, 17 Sep 2011 07:07:25 GMT
On Fri, Sep 16, 2011 at 8:04 PM, Davis Ford <> wrote:
> One quick note on this: Claus states in this thread:
> "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."

The community decided to move this forward. So Camel 2.6.x is the last
release which officially supports Spring 2.5.x as well.
If you see the release notes of Camel 2.6, there is a note about this
under "important changes ..."

> 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(
>        at org.apache.camel.component.jms.JmsEndpoint.createConsumer(
>        at org.apache.camel.component.jms.JmsEndpoint.createConsumer(
>        at org.apache.camel.component.jms.JmsEndpoint.createConsumer(
>        at org.apache.camel.impl.EventDrivenConsumerRoute.addServices(
>        at org.apache.camel.impl.DefaultRoute.onStartingServices(
>        at org.apache.camel.impl.RouteService.warmUp(

Yes Spring 2.5 have their own API for thread pools. Where as in Spring
3.0 they use the API from the JDK for that.
So there is an API breakage which is unavoidable. You can fix this by
patching the source code in camel-jms.

You may also need to remove some pieces in camel-spring that depends
on Spring 3 such as the Spring Expression Language.

> 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 []
> Sent: Friday, September 16, 2011 1:37 PM
> To:
> 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 []
> Sent: Friday, September 16, 2011 12:57 PM
> To:
> Subject: Re: camel 2.8.0 with spring 2.5.6?
> According to this page:
> Camel 2.8 requires Spring 3, so just pick a version before that. I think
> 2.7.3 is the newest you can use:

Claus Ibsen
Twitter: davsclaus, fusenews
Author of Camel in Action:

View raw message