I saw a new class called LockManager, so I gave it a try

        final IMap map = (IMap) CacheFinder.find("/./testCache?schema=mycache&versioned=false&create=true&noCache=false");
        LockManager manager = new LockManager(map);
        manager.lock("test", 1000, 1000);

then I got this exception:

org.openspaces.core.SpaceTimeoutException: Failed waiting for lock on key test
at org.openspaces.core.map.LockManager.lock(LockManager.java:111)

Any idea why it happened? I thought once I called .lock, I would be able to process the next method. However, it timed out and threw the exception.

This thread was imported from the previous forum.
For your reference, the original is available here

asked 2007-10-22 22:17:02 -0500

testy gravatar image

updated 2013-08-08 09:52:00 -0500

jaissefsfex gravatar image
edit retag flag offensive close merge delete