node.lock(false, false);
assertTrue(node.isLocked());
// remove lock properties from JCR tables
JDBCWorkspaceDataContainer container =
(JDBCWorkspaceDataContainer)repository.getWorkspaceContainer("ws").getComponent(
JDBCWorkspaceDataContainer.class);
CacheableWorkspaceDataManager dataManager =
(CacheableWorkspaceDataManager)repository.getWorkspaceContainer("ws").getComponent(
CacheableWorkspaceDataManager.class);
System.setProperty(AbstractCacheableLockManager.LOCKS_FORCE_REMOVE, "true");
try
{
// Remove info from the db
container.start();
// Remove info from the cache
dataManager.start();
}
finally
{