Hi,

I would like to limit the number of concurrent requests that a service
processes to a certain quantity. I came across the existence of the
PooledFactory which I suposse that may fit my needs, I could configure the
size of the pool to the maximum number of concurrent calls I want to serve.

However I can't figure out how to make this factory work with Spring. I have
the service configured in ApplicationContext.xml like this:

<jaxws:endpoint id="MyService" implementor="#MyServiceImpl"
address="/MyServicePath">

But I can't see any straightforward way to tell the service to use the
PooledFactory. What's more, the PooledFactory class is not
ApplicationContextAware so this may, all in all, be impossible. 

A related topic has been discussed in this thread 
http://cxf.547215.n5.nabble.com/PerRequestFactory-PooledFactory-with-Spring-configuration-and-JAX-WS-frontend-td554697.html
http://cxf.547215.n5.nabble.com/PerRequestFactory-PooledFactory-with-Spring-configuration-and-JAX-WS-frontend-td554697.html
 
but the solution given doesn't cover my original problem.

Any suggestion on this issue would be appreciated.

Regards,
Óscar

--
View this message in context: 
http://cxf.547215.n5.nabble.com/Limiting-concurrent-requests-served-using-PooledFactory-and-Spring-tp4538413p4538413.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to