I have a JAX-WS RI server that does MTOM streaming. From the client, everything is fine. The server receives a StreamingDataHandler, and neither side uses much memory sending 1 GB. Retrieving the file, however, the server is reading the entire contents before sending it. The client is OK. I'm using DataHandler on both ends, so that aspect of things is fine. I just don't want the server to read all the data from the InputStream before it starts sending. I have the following annotations on the impl:
@MTOM
@StreamingAttachment(parseEagerly = false, memoryThreshold = 1L)
@WebService(...)
I've tried parseEagerly
true
and false
. I set the memory threshold low because I'm not concerned about small performance hits for small files.
Is this a bug with JAX-WS RI?