openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gerdo...@apache.org
Subject svn commit: r934617 - in /openwebbeans/trunk/webbeans-ejb/src/main/java/org/apache/webbeans/ejb/common: component/BaseEjbBean.java proxy/EjbBeanProxyHandler.java
Date Thu, 15 Apr 2010 22:06:17 GMT
Author: gerdogdu
Date: Thu Apr 15 22:06:17 2010
New Revision: 934617

URL: http://svn.apache.org/viewvc?rev=934617&view=rev
Log:
update for stateful errors

Modified:
    openwebbeans/trunk/webbeans-ejb/src/main/java/org/apache/webbeans/ejb/common/component/BaseEjbBean.java
    openwebbeans/trunk/webbeans-ejb/src/main/java/org/apache/webbeans/ejb/common/proxy/EjbBeanProxyHandler.java

Modified: openwebbeans/trunk/webbeans-ejb/src/main/java/org/apache/webbeans/ejb/common/component/BaseEjbBean.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-ejb/src/main/java/org/apache/webbeans/ejb/common/component/BaseEjbBean.java?rev=934617&r1=934616&r2=934617&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-ejb/src/main/java/org/apache/webbeans/ejb/common/component/BaseEjbBean.java
(original)
+++ openwebbeans/trunk/webbeans-ejb/src/main/java/org/apache/webbeans/ejb/common/component/BaseEjbBean.java
Thu Apr 15 22:06:17 2010
@@ -25,6 +25,7 @@ import javax.enterprise.inject.spi.Sessi
 import org.apache.webbeans.component.AbstractInjectionTargetBean;
 import org.apache.webbeans.component.EnterpriseBeanMarker;
 import org.apache.webbeans.component.WebBeansType;
+import org.apache.webbeans.util.ClassUtil;
 
 /**
  * Defines bean contract for the session beans.
@@ -140,6 +141,11 @@ public abstract class BaseEjbBean<T> ext
         if(removeStatefulInstance && getEjbType().equals(SessionBeanType.STATEFUL))
         {
             //Call remove method
+            List<Method> methods = getRemoveMethods();
+            for(Method method : methods)
+            {
+                ClassUtil.callInstanceMethod(method, instance, ClassUtil.OBJECT_EMPTY);
+            }
         }        
     }
     

Modified: openwebbeans/trunk/webbeans-ejb/src/main/java/org/apache/webbeans/ejb/common/proxy/EjbBeanProxyHandler.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-ejb/src/main/java/org/apache/webbeans/ejb/common/proxy/EjbBeanProxyHandler.java?rev=934617&r1=934616&r2=934617&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-ejb/src/main/java/org/apache/webbeans/ejb/common/proxy/EjbBeanProxyHandler.java
(original)
+++ openwebbeans/trunk/webbeans-ejb/src/main/java/org/apache/webbeans/ejb/common/proxy/EjbBeanProxyHandler.java
Thu Apr 15 22:06:17 2010
@@ -95,8 +95,7 @@ public class EjbBeanProxyHandler impleme
             webbeansInstance=webbeansContext.get(this.ejbBean);
             if (webbeansInstance != null)
             {
-                // voila, we are finished if we found an existing contextual instance
-                return webbeansInstance;
+                return method.invoke(webbeansInstance, arguments);
             }
             
             if (webbeansContext instanceof AbstractContext)



Mime
View raw message