When you are working with attachments, the value (or default value)
configured for the attachment memory threshold in AttachmentDeserializer
overrides the value set for CachedOutputStream.Threshold. So if you want to
change the Threshold you need to configure the "attachment-memory-threshold"
property (see http://cxf.apache.org/docs/jax-rs-multiparts.html for an
example of this).
On Sat, Feb 17, 2018 at 5:28 AM, Srinivasa <veerapanenisriniv...@gmail.com>
> Could Some one provide me with a solution, my attachments from the service
> response is being limited to 102400 and i see the stream being returned to
> my code is being null.
> i tried adding the parameters to the CachedOutPutStream ,but i see that
> they are getting overriden in the AttchmentUtil class with default
> appreciate any help
> On Fri, Feb 16, 2018 at 11:00 AM, Srinivasa <veerapanenisrinivasa@gmail.
> > Hi,
> > i am trying to set the Threshold for the attachments which
> > am doing in standaloneconf in jboss , but with no luck
> > set "JAVA_OPTS=%JAVA_OPTS% -Dorg.apache.cxf.io.
> > CachedOutputStream.Threshold=1024001"
> > what i am seeing is that it is getting overriden in
> > org.apache.cxf.attachment.AttachmentUtil
> > .setStreamedAttachmentProperties
> > Could you please let us know if there is an alternative approach for this
> > issue.
> > --
> > Thanks,
> > Srinivasa Veerapaneni
> Srinivasa Veerapaneni
Colm O hEigeartaigh
Talend Community Coder