Author: epbernard
Date: 2010-01-05 05:46:13 -0500 (Tue, 05 Jan 2010)
New Revision: 18408
Modified:
core/trunk/core/src/main/java/org/hibernate/context/ThreadLocalSessionContext.java
Log:
HHH-4749 Don't block calls to getListeners on SessionImplementor when using thread
scoped sessions
Modified:
core/trunk/core/src/main/java/org/hibernate/context/ThreadLocalSessionContext.java
===================================================================
---
core/trunk/core/src/main/java/org/hibernate/context/ThreadLocalSessionContext.java 2010-01-05
09:45:30 UTC (rev 18407)
+++
core/trunk/core/src/main/java/org/hibernate/context/ThreadLocalSessionContext.java 2010-01-05
10:46:13 UTC (rev 18408)
@@ -311,7 +311,9 @@
|| "equals".equals( method.getName() )
|| "hashCode".equals( method.getName() )
|| "getStatistics".equals( method.getName() )
- || "isOpen".equals( method.getName() ) ) {
+ || "isOpen".equals( method.getName() )
+ || "getListeners".equals( method.getName() ) //useful for HSearch in
particular
+ ) {
// allow these to go through the the real session no matter what
}
else if ( !realSession.isOpen() ) {
Show replies by date