users@saaj.java.net

Re: [SAAJ-USR] Mimepull temp files issue

From: Kumar Jayanti <Vbkumar.Jayanti_at_Sun.COM>
Date: Wed, 13 Jan 2010 17:43:03 +0530

Hi Jitu,

Jonathan Avraham wrote:
> Hi,
>
> I am using SAAJ 1.3.4 with mimepull enabled for large attachment support.
> I am using getRawContent() from the attachment , I then proceed to
> extract what I need from the Inputstream.
> The problem is that the temp file created for the message is not
> deleted and still kept open by the system, this means I can't even
> delete it manually until I restart tomcat.
> I have tried closing the Inputstream, clearing the content from the
> attachment and clearing the hole SOAPMessage, nothing worked.
>
> What am i doing wrong?
>
I have obviously missed some step to clean up the temp files created by
MimePull in my usage of the API in SAAJ. Can you tell me how we can
cause the MimePull runtime to delete temp-files ?.

regards,
kumar

> Thanks,
> Jonatan
>