Skip to main content



      Home
Home » Archived » BIRT » Birt Viewer: Cleaning up temporary files
Birt Viewer: Cleaning up temporary files [message #208948] Wed, 03 January 2007 09:36 Go to next message
Eclipse UserFriend
Originally posted by: arne.degenring.com

Does anybody know when and how the Birt Viewer Webapp cleans up temporary
resources like the generated rptdocument files, report images and so on?

Thanks!

- Arne
Re: Birt Viewer: Cleaning up temporary files [message #209030 is a reply to message #208948] Wed, 03 January 2007 14:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: test.tes3456t.com

I noticed that when you stop and restart the Tomcat server, the temporary
files are cleared. I do not know if there is an alternate way to do this.

-- Mustafa


Arne Degenring wrote:

> Does anybody know when and how the Birt Viewer Webapp cleans up temporary
> resources like the generated rptdocument files, report images and so on?

> Thanks!

> - Arne
Re: Birt Viewer: Cleaning up temporary files [message #209103 is a reply to message #209030] Thu, 04 January 2007 03:24 Go to previous message
Eclipse UserFriend
Originally posted by: arne.degenring.com

Thanks, Mustafa. In the meantime I did some more research, and it seems to
be true: ParameterAccessor.clearDocuments seems to be the only place where
old rptdocuments are cleaned up, and this method is called during context
initialization. Regarding images it seems to be even worse, I could not
find any place where image files are cleaned up.

Jason and other BIRT committers: I really think this should be changed in
BIRT 2.2 or even 2.1.2, as this is just not acceptable for production use!

A simple and effective solution could be to define a HttpSessionListener
that cleans up the session-specific subfolder of the documents folder as
soon as the session is destroyed.

The image handling couldbe changed so that images are stored in subfolders
of the images folder that contain the session key in their names (as
suggested in
http://dev.eclipse.org/newslists/news.eclipse.birt/msg15400. html). That
way, the same HttpSessionListener could clean up the session-specific
"images" subfolder as well.

-- Arne


Mustafa wrote:

> I noticed that when you stop and restart the Tomcat server, the temporary
> files are cleared. I do not know if there is an alternate way to do this.

> Arne Degenring wrote:

>> Does anybody know when and how the Birt Viewer Webapp cleans up temporary
>> resources like the generated rptdocument files, report images and so on?
Previous Topic:Implementing a custom filter for a dataset
Next Topic:Cant run birt in browser
Goto Forum:
  


Current Time: Tue Jul 15 22:23:59 EDT 2025

Powered by FUDForum. Page generated in 0.03971 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top