I've been doing some tests using MTOM with different binary data files and found something particular using big files.
When the size of the file is 40Mb aprox. and I use SOAP serialization, the error out of memory occurs. But, when I use MTOM, it doesn't. I supose this has to do with how SOAP and MTOM serialization are implemented. I suppose that SOAP uses DOM and MTOM maybe STAX. Is this correct?
I'm using JBossWS Native 3.3.1 and assinging 512Mb to the Java Console Client.