Re: How to limit concurrent requests served by resource?

2016-01-22 Thread Sergey Beryozkin
I might have some time to look at https://issues.apache.org/jira/browse/CXF-6610 before 3.1.5 gets released if not then we will do for 3.1.6 It should be a very basic update, say if an optional property "abortWhenThresholdIsReached" is set then a specific exception is thrown, and either JAXWS

Re: How to limit concurrent requests served by resource?

2016-01-18 Thread Vjacheslav V. Borisov
Sergey, how should we adopt this approach to jax-rs services? Which is there jax-rs analogs to AbstractPhaseInterceptor ? 2016-01-15 16:19 GMT+04:00 Sergey Beryozkin : > Hi > > CXF ships its own throttling feature, Dan did it, see > > >

Re: How to limit concurrent requests served by resource?

2016-01-18 Thread Sergey Beryozkin
Hi, jaxrs:server can have features or native CXF interceptors registered within jaxrs:features and jaxrs:inInterceptors (or jaxrs:outInterceptors), so that demo should work the same way with JAXRS servers it works with JAXWS. Unfortunately I haven't experimented much myself yet, though as I

How to limit concurrent requests served by resource?

2016-01-15 Thread Vjacheslav V. Borisov
Hi, How to limit concurrent requests served by specific resource, or by application iteself? Found this thread http://stackoverflow.com/questions/5563442/how-to-set-limit-to-the-number-of-concurrent-request-in-servlet Should i do something like showed in accepted answer, or cxf has his limit

Re: How to limit concurrent requests served by resource?

2016-01-15 Thread Sergey Beryozkin
Hi CXF ships its own throttling feature, Dan did it, see https://fisheye6.atlassian.com/browse/cxf/distribution/src/main/release/samples/throttling The threads will be temporarily suspended If the threshold is reached. One thing that still needs to be done is to support actually returning