Applet and JavaWebStart on one site - same virtual machine?
Hi!
My and my collegue have developed an application. The main entry point is a simple web site, which contains an applet and several JWS links on the same page. All of the components are signed. The applet and the rest use the same file along the way (reading and writing), so we use FileLocks to synchronize access. It all works if we run the applet using eclipse, and run any of the application, also using eclipse - file locking works fine. But when we deployed the application to the server, bad things begun to happen: when we enter the site, the applet start normally, and this is goood. But when we click on any of the links, JWS initializes the application and we get OverlappingFileLockException. We don't catch it in the application so this is understandable. This exception is thrown when the same VM tries to acquire an exclusive lock an an overlapping block of the file (we need write locks). So my diagnose is that when run in test environment (eclipse) the applet and the apps use da different VM, but when run from the web site, all the applications use the same VM, thus the OverlappingFileLockException.
This will be easy to correct, but the question is:
is it always the case that applets and JWS applications run from the same web site (maybe even from the same browser, no matter the site) use the same virtual machine?
Thank.

