The Node Browser in the UI can now navigate AVM stores.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3553 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2006-08-21 14:05:52 +00:00
parent 0135279f47
commit 26877f6105
5 changed files with 47 additions and 7 deletions

View File

@@ -96,12 +96,16 @@ class HibernateRetryingTransactionHelper extends HibernateTemplate implements Re
t.printStackTrace(System.err);
throw new AVMException("Unrecoverable error.", t);
}
if (!status.isCompleted())
if (newTxn && !status.isCompleted())
{
fTransactionManager.rollback(status);
}
if (!newTxn)
{
if (t instanceof AVMException)
{
throw (AVMException)t;
}
throw new AVMException("Unrecoverable error.", t);
}
// If we've lost a race or we've deadlocked, retry.