HHH-7200 SessionFactoryObservers should be notified of the close event in reverse order of the create event
This commit is contained in:
parent
74e5c3150d
commit
d159dcef6f
|
@ -59,8 +59,10 @@ public class SessionFactoryObserverChain implements SessionFactoryObserver {
|
|||
return;
|
||||
}
|
||||
|
||||
for ( SessionFactoryObserver observer : observers ) {
|
||||
observer.sessionFactoryClosed( factory );
|
||||
//notify in reverse order of create notification
|
||||
int size = observers.size();
|
||||
for (int index = size - 1 ; index >= 0 ; index--) {
|
||||
observers.get( index ).sessionFactoryClosed( factory );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue