I have a service that imports large data. On server side, I followed the MTOM 
doc (http://cwiki.apache.org/CXF20DOC/mtom.html) to enable mtom and use 
DataHandler. And I can transfer file with no problem.

Now I want to test my service on client side. I followed the same doc for 
client set up, and it works with small files but always fails with large files 
(1GB).

My understanding is that client will send request using attachment for the 
large data since I turned on MTOM, but actually all data got inlined. Besides, 
since I am using DataHandler/AttatchmentDataSource/FileInputStream, I assume 
client won't construct the whole request object in memory. Instead, it should 
send request/data while reading the data from file. But I don't think it works 
like this since I always got heap overflow error and nothing is sent.

Do any one know how it is supposed to work?

Boxiong



      

Reply via email to