Dec 9th, 2008, 02:57 PM
send/receive huge files using Spring-WS
Currently I'm in the process of developing a web service for sending and accepting huge files (up to 150MB), both ASCII and binary.
Because I do not want to end up with huge objects in the heap, I had the idea to stream the file directly from the filesystem to the client (and the other way around) using AxiomSoapMessageFactory at the server, in combination with StaxStreamPayloadEndpoints.
I've already tried a couple of different things, but unfortunately without success. Had a lot of 'OutOfMemoryError: Java heap space' errors, even with "small" files of around 2MB.
Tomorrow I'll try again. But for now I desperately want to know if I'm on the right track to do this (if even possible)? Please advice...
Apr 3rd, 2009, 01:16 AM
and/or search "stream" in forums for more on this.