title: JAX-WS MTOM streaming: server reads entire stream before sending
body: <p>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:</p>
  
  <pre><code>@MTOM
  @StreamingAttachment(parseEagerly = false, memoryThreshold = 1L)
  @WebService(...)
  </code></pre>
  
  <p>I've tried <code>parseEagerly</code> <code>true</code> and <code>false</code>. I set the memory threshold low because I'm not concerned about small performance hits for small files.</p>
  
  <p>Is this a bug with JAX-WS RI? </p>