users@jersey.java.net

Cleanup of jersey-multipart BodyPartEntity data

From: Andrew Feller <afelle1_at_lsu.edu>
Date: Tue, 17 Feb 2009 12:33:00 -0600

SCENARIO: Issuing multipart POST request to Jersey REST web service with
multiple file attachments; file attachments being stored to disk in
java.io.temp directory and not being cleaned up
ENVIRONMENT: Windows 2000, Java 6, Tomcat 6.0, jersey-bundle-1.0.1 SNAPSHOT,
jersey-multipart-1.0.1 SNAPSHOT

I am looking to upgrade to the latest versions of the Jersey bumdle and
multipart, but I wanted to bring this up. I know from an earlier post (
http://n2.nabble.com/Problem-saving-binary-data-using-Jersey-multipart-td224
2402.html ) that jersey-multipart will store data exceeding the buffer size
to file, however I would like these files cleaned up at the end of a
request.

Thoughts?

Thanks,
Andrew

-- 
Andrew Feller, Analyst
LSU University Information Services
200 Frey Computing Services Center
Baton Rouge, LA 70803
Office: 225.578.3737
Fax: 225.578.6400