Issue with lock file (.jazzlock) after load using Java API
Hi,
I've developed a java program using RTC API that load all files from all components on a given workspace using the ILoadOperation interface.
I can download all files but when I try to zip the result I've a problem with the .jazz5.jazzlock file that is locked.
I'm sure to close RTC connection (call logout and shutdown methods ) before running the ZIP process but seems that is not enough.
If we try to zip the files after the execution of my java script I can do it, the lock seems to be in Java application.
Do you have any suggestion ?
Thanks in advance,
Davide Dellepiane
Accepted answer
Have you seen this? http://thescmlounge.blogspot.de/2013/08/getting-your-stuff-using-rtc-sdk-to-zip.html
Comments
2 other answers
It's not necessary to zip up the .jazz5 folder if you're only interested in the content. You shouldn't be moving that folder around because it is the metadata for the resources that you have loaded. It will have linked those resources to the workspace and sharing that data in multiple locations will give you synchronization problems.
As I may understand from
I've developed a java program using RTC API that load all files from all components on a given workspace using the ILoadOperation interface. I can download all files but when I try to zip the result I've a problem with the .jazz5\.jazzlock file that is locked. I'm sure to close RTC connection (call logout and shutdown methods ) before running the ZIP process but seems that is not enough.maybe you couldn't close properly because you should add a
sharingManager.deregister(sandbox, progressMonitor);after the load operation. Maybe in the meantime you used a "no-workspace" solution like those pointed by Ralph...