|
Re: PHP BIRT - Delete Session Folders [message #756231 is a reply to message #756187] |
Fri, 11 November 2011 15:16 |
|
Are you using the php Java Bridge or the BIRT Viewer on tomcat?
Jason
On 11/11/2011 7:24 AM, karvesh wrote:
> Dear All,
> The integration of php with BIRT entails the creation of session folders
> containing the rptdocument files.
>
> I have created a batch file with the simple code:
>
> forfiles -p "C:\what\ever" -s -m *.* -d <number of days> -c "cmd /c del
> @path"
>
> that will delete all session folders older than any specific number of days
>
> However, i am having some trouble to do it because my Tomcat server is
> running all time and the process seems to lock the rptdocument files in
> the session folders.
>
> Any advise how to overcome that problem? The issue is that the session
> folders are cropping rapidly on the server..
>
> Thanks in advance
>
> Karvesh
|
|
|
|
Re: PHP BIRT - Delete Session Folders [message #756650 is a reply to message #756328] |
Mon, 14 November 2011 15:14 |
|
There appears to be a bug in some of the render samples, where the
document is not being closed:
$task->render();
$document->close();
$task->close();
Make sure you are closing the documents after every render operation and
then your delete code should work. I just tested this to verify.
Jason
On 11/11/2011 10:39 PM, karvesh wrote:
> Dear Jason
>
> Its the javabridge..
> I noted that when i stop Tomcat, i can delete the session folders.. Is
> there another way to delete them with out having to stop tomcat?
>
> Karvesh
|
|
|
|
Powered by
FUDForum. Page generated in 0.02923 seconds