Birt Viewer: Cleaning up temporary files [message #208948] |
Wed, 03 January 2007 09:36  |
Eclipse User |
|
|
|
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 #209103 is a reply to message #209030] |
Thu, 04 January 2007 03:24  |
Eclipse User |
|
|
|
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?
|
|
|
Powered by
FUDForum. Page generated in 0.03971 seconds