openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1650177 - /openwebbeans/trunk/webbeans-ee/src/main/java/org/apache/webbeans/ee/event/TransactionalEventNotifier.java
Date Wed, 07 Jan 2015 22:10:13 GMT
Author: rmannibucau
Date: Wed Jan  7 22:10:12 2015
New Revision: 1650177

URL: http://svn.apache.org/r1650177
Log:
tx observers needs to be called immediately when there is no tx

Modified:
    openwebbeans/trunk/webbeans-ee/src/main/java/org/apache/webbeans/ee/event/TransactionalEventNotifier.java

Modified: openwebbeans/trunk/webbeans-ee/src/main/java/org/apache/webbeans/ee/event/TransactionalEventNotifier.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-ee/src/main/java/org/apache/webbeans/ee/event/TransactionalEventNotifier.java?rev=1650177&r1=1650176&r2=1650177&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-ee/src/main/java/org/apache/webbeans/ee/event/TransactionalEventNotifier.java
(original)
+++ openwebbeans/trunk/webbeans-ee/src/main/java/org/apache/webbeans/ee/event/TransactionalEventNotifier.java
Wed Jan  7 22:10:12 2015
@@ -79,7 +79,18 @@ public class TransactionalEventNotifier
             {
                 throw new IllegalStateException(WebBeansLoggerFacade.getTokenString(OWBLogConst.EXCEPT_0007)
+ phase);
             }            
-        }        
+        }
+        else
+        {
+            if (observer instanceof OwbObserverMethod)
+            {
+                ((OwbObserverMethod<? super Object>)observer).notify(event, metadata);
+            }
+            else
+            {
+                observer.notify(event);
+            }
+        }
     }
     
     private static class AbstractSynchronization<T> implements Synchronization



Mime
View raw message