users@jax-ws.java.net

Re: Problems with JAX-WS2.1 / Out of Memory - possible Solution

From: Jitendra Kotamraju <Jitendra.Kotamraju_at_Sun.COM>
Date: Fri, 27 Apr 2007 15:26:38 -0700

>
> At least, SwaCodec calls DataHandlerAttachment.writeTo, here
> DataHandlerAttachment.asByteArray is called, (for obvious reasons)
> resulting in Out of Memory....
Yes, it should just use dh.writeTo(os). This is fixed in
2.1.2(unfortunately, cannot put in 2.1.1). So the sending of large
messages should go through fine when you use HTTP chunking. We have some
work to do on the receiving side. Also are you enabling MTOM on both
client and server ?

Jitu