mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Fixed my own bone headed breakage.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3385 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -82,12 +82,15 @@ class HibernateRetryingTransaction extends HibernateTemplate implements Retrying
|
|||||||
status =
|
status =
|
||||||
fTransactionManager.getTransaction(write ? fWriteDefinition : fReadDefinition);
|
fTransactionManager.getTransaction(write ? fWriteDefinition : fReadDefinition);
|
||||||
execute(new HibernateCallbackWrapper(callback));
|
execute(new HibernateCallbackWrapper(callback));
|
||||||
|
fTransactionManager.commit(status);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
catch (Throwable t)
|
catch (Throwable t)
|
||||||
{
|
{
|
||||||
if (status == null)
|
if (status == null)
|
||||||
{
|
{
|
||||||
t.printStackTrace(System.err);
|
t.printStackTrace(System.err);
|
||||||
|
throw new AVMException("Unrecoverable error.", t);
|
||||||
}
|
}
|
||||||
if (!status.isCompleted())
|
if (!status.isCompleted())
|
||||||
{
|
{
|
||||||
@@ -128,15 +131,6 @@ class HibernateRetryingTransaction extends HibernateTemplate implements Retrying
|
|||||||
}
|
}
|
||||||
throw new AVMException("Unrecoverable error.", t);
|
throw new AVMException("Unrecoverable error.", t);
|
||||||
}
|
}
|
||||||
try
|
|
||||||
{
|
|
||||||
fTransactionManager.commit(status);
|
|
||||||
}
|
|
||||||
catch (TransactionException te)
|
|
||||||
{
|
|
||||||
throw new AVMException("Transaction Exception.", te);
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user