OPENJPA-913

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@743477 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
A. Abram White 2009-02-11 20:14:24 +00:00
parent a1f6b1550f
commit 1d47f14547
1 changed files with 9 additions and 2 deletions

View File

@ -778,8 +778,15 @@ public class BrokerImpl
int eventType) {
if (_lifeEventManager == null)
return false;
handleCallbackExceptions(_lifeEventManager.fireEvent(src, related,
meta, eventType), _lifeCallbackMode);
lock();
Exception[] exs;
try {
exs = _lifeEventManager.fireEvent(src, related, meta, eventType);
} finally {
unlock();
}
handleCallbackExceptions(exs, _lifeCallbackMode);
return true;
}