I used the System.gc() and it works, hope not to encounter it again :).

Thanks,

Nadav Hoze
Senior Software Engineer
dbMotion Ltd.
Direct: +972-9-7699000
Extension number: 9037
Mobile: 972-54-4821606
E-mail: [email protected]



-----Original Message-----
From: Andy Seaborne [mailto:[email protected]] On Behalf Of Andy 
Seaborne
Sent: Wednesday, October 26, 2011 2:21 PM
To: [email protected]
Subject: Re: Deleting jena generated datastore file fails.

Welcome to Java bugs 4715154 and 4724038

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4715154
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4724038

The TDB test suite deletes databases on Linux but on Windows it creates a new, 
clean directory each time (and leaves junk around after the suite exists). I 
don't know if you can move the directory and it's files elsewhere and create a 
new dataset directory with the same original name on MS Windows. Anyone know?

        Andy

On 26/10/11 13:00, Nadav Hoze wrote:
> Hi,
>
> I'm using Jena TDB, and I need to override the datastore files ( i.e.
> OSP.dat, OSP.idn, node2id.dat and etc...) with previous backup files
> that I have.
>
> To close and release these resources I use the following:
>
> TDB./sync/(model);
>
> TDB./closedown/();
>
> model.close();
>
> but somehow the files are still held by the process, can someone
> please help, how do release any handlers attached to my model.
>
> I saw the mail about it (see attached), will it help to do
>
> My application is a standalone application with one main thread.
>
> Thanks,
>
> *Nadav Hoze*
This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. 
Please note that any disclosure, copying or distribution of the content of this 
information is strictly forbidden. If you have received this email message in 
error please notify its sender and then delete it from your files.

Reply via email to