camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
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 <dford@axeda.com> wrote:
> 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."
>

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 ..."
http://camel.apache.org/camel-260-release.html




> 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)
>

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 [mailto:dford@axeda.com]
> Sent: Friday, September 16, 2011 1:37 PM
> To: users@camel.apache.org
> 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:brendan@realgo.com]
> Sent: Friday, September 16, 2011 12:57 PM
> To: users@camel.apache.org
> 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
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message