Question

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 interface 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.

Was it helpful?

Solution

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

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top