Hi ! As I ve no responses, I'm writing to the list.
I have open a bug
http://java.net/jira/browse/JAX_WS-971. As nobody
take it, I've writed a post on the forum, but no more response...
So, when you modify an outcome message with a Handler, and when you
deal with large attachment,you have a problem, because in the classe
com.sun.xml.ws.message.saaj.SAAJMessage.SAAJAttachment, we have the
following method used by MimeCodec and MTOMCodec :
public void writeTo(OutputStream os) throws IOException {
os.write(asByteArray());
}
The document is entirely mounted in memory !
Is anybody can make a patch to correct this ?