• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

apache commons FileCleanerCleanup in a portlet environment

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everyone,
I have a little question to which I can't find an answer... I'd appreciate it a lot if you could help me out

The thing is, I'm trying to use the org.apache.commons.fileupload in a portlet 2.0 environment. Everything is working very well, but if I want to make sure my temporary files are cleaned properly, then according to the User Guide of fileupload, I should also use the FileCleaningTracker:


Problem is, there is only org.apache.commons.fileupload.servlet.FileCleanerCleanup and no org.apache.commons.fileupload.portlet.FileCleanerCleanup, which means I can't use the PortletContext - I should find a way to extract a SessionContext...

Have you ever encountered such a problem? Could you please help me with it?

Thanks a lot in advance!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic