DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21123>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21123

Axis Temp File(s) for AttachmentPart





------- Additional Comments From [EMAIL PROTECTED]  2003-06-27 15:55 -------
no. it happens automatically when the system garbage collects the DataSource
objects. 

In the CVS version of Axis you can call Attachments.dispose() to force an early
cleanup of all attachments, but this is not called by the system. The nice thing
about leaving it to the Java GC mechanism is that it makes sure that nobody is
hanging on to the attachments, which is not something we can assume. i.e. we
cannot  dispose() of attachments at the end of every message in case your
handlers want to keep hold of them.

In Axis 1.1. from an AttachmentPart, dispose() may be in there; if it isnt, you
can get the filename of a file w/ getAttachmentFile(), delete it, then call
detachAttachmentFile() to tell the AttachmentPart to forget about the file.

Reply via email to