Thanks a lot ----original ----- Sender: Freeman Fang [mailto:[email protected]] Date: 2011/4/25 11:36 Receiver: [email protected] Subject: Re: could cxf save larget attachemnt in temporary file?
Hi, My comment inline On 2011-4-25, at 上午11:16, ext2 wrote: > > Hi: > Sometimes, web service (both service and client) need to receive > very large attachment. > 1) does cxf support save large attachment in temporary file for > service to receive request , and client to receive response? Yeah, When cxf message exceed a threshold(64 k by default), it will save the memory message to temp file on hard disk(by default it save to the folder specified by a pre-set well-known java system properties java.io.tempdir + cxf-temp-random ). > 2)how could I configure the temporary directory and threshold? You can specify the threshold with property org.apache.cxf.io.CachedOutputStream.Threshold (64k by default) t and specify the cxf temp dir for big size message with property org.apache.cxf.io.CachedOutputStream.OutputDirectory to a folder you have full acesss permission. Freeman > > > > --------------------------------------------- Freeman Fang FuseSource Email:[email protected] Web: fusesource.com Twitter: freemanfang Blog: http://freemanfang.blogspot.com Connect at CamelOne May 24-26 The Open Source Integration Conference
