On 09/12/11 02:53, Davis Ford wrote:
It seems there are several different possible approaches to this with CXF.  The 
goal is to set a max byte count limit on uploads.

I took a look here: 
http://cxf.apache.org/docs/jax-rs-multiparts.html#JAX-RSMultiparts-Readinglargeattachments

They show how to configure<jaxrs:properties>  with

<entry key="attachment-memory-threshold" value="404800"/>

<entry key="attachment-max-size" value="404800"/>

I tried using these values on the port in question, but they seemed to have no 
effect.  I could post massive files that exceeded the limit.

So, there are Interceptors, Filters, and MessageBodyReaders -- I suppose this 
task could be done in any of those.

I'm just wondering if there is some out-of-the-box support for this 
functionality already, and if not, what would the recommended path be?

Is it CXF 2.5.0 that you work with ? We have a test confirming the property is used. Is it a multipart/form-data request ?

thanks, Sergey


Thanks in advance!

Davis


--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Blog: http://sberyozkin.blogspot.com

Reply via email to