MTOM and temporary files
When using MTOM in a web service, large attachments are saved in a temporary
file called MIMExxxx.tmp in the OS temp folder.
After the WS consumption, I have noticed that these files are not closed
immediately, but remain open for a while (GC execution?).
Under heavy load circumstances, this is a terrible problem as it can lead
the server to have too many open file descriptors.
Setting @StreamingAttachment.memoryThreshold to -1L leads to not using
temporary files, but this seems only a workaround to me, I would like to
force the temporary files to close.
I wonder if it is possible.
Thanks in advance,