开发者

JMS with apache camel in ServiceMix generates an error

I've got a problem with JMS access in spring, I try to configure JMS consumer and get an error:

Class org.springframework.core.task.SimpleAsyncTaskExecutor does not implement the requested int开发者_运维百科erface java.util.concurrent.Executor

Does any one know how to solve this, or what this really means? I'm using Camel 2.4 and am deploying my service to ServiceMix 3.3.


I am assuming you are using Spring 2.x.

It seems that Spring 2.x SimpleAsyncTaskExecutor does not implement the Java core Executor interface. To resolve this, you have 2 options I can think of right off the bat:

  1. Upgrade to Spring 3.x. That version of SimpleAsyncTaskExecutor does implement the Executor interface.
  2. Use a different Executor implementation. Java core has the built in ThreadPoolExecutor, or you can use the ExecutorService to construct a variety of different configurations of the same.

Hope that helps.

//Nicholas


You could maybe recompile camel-jms using spring 2.5 which oddly may help. Check camel building source docu as there is a maven profile to use spring 2.5.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜