Greetings,

Although I read http://static.springsource.org/sprin...tory-lifecycle

I fail to understand why this fails :

<bean id="foo" factory-bean="exe" factory-method="newCachedThreadPool"/>
<bean id="exe" class="java.util.concurrent.Executors"/>

I thought that Executors.newCachedThreadPool would return me a ThreadPoolExecutor that could be referenced as foo.

But STS tells me Non-static factory method 'newCachedThreadPool' not found in factory bean class.

I Use JSE 6 and knows there is s the mistake is elsewhere.

Can someone please explain to me what's wrong ?

thanks !