[jboss-cvs] JBossAS SVN: r58444 - trunk/server/src/main/org/jboss/ejb

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Nov 16 05:55:04 EST 2006


Author: alex.loubyansky at jboss.com
Date: 2006-11-16 05:55:02 -0500 (Thu, 16 Nov 2006)
New Revision: 58444

Modified:
   trunk/server/src/main/org/jboss/ejb/StatelessSessionContainer.java
Log:
rollback the method mapping changes

Modified: trunk/server/src/main/org/jboss/ejb/StatelessSessionContainer.java
===================================================================
--- trunk/server/src/main/org/jboss/ejb/StatelessSessionContainer.java	2006-11-16 06:30:33 UTC (rev 58443)
+++ trunk/server/src/main/org/jboss/ejb/StatelessSessionContainer.java	2006-11-16 10:55:02 UTC (rev 58444)
@@ -30,6 +30,7 @@
 import javax.ejb.EJBException;
 import javax.ejb.EJBLocalObject;
 import javax.ejb.EJBObject;
+import javax.ejb.Handle;
 import javax.ejb.RemoveException;
 
 import org.jboss.invocation.Invocation;
@@ -60,7 +61,7 @@
 
    // EJBLocalHome implementation
 
-   public EJBLocalObject createLocalHome(Invocation mi)
+   public EJBLocalObject createLocalHome()
            throws CreateException
    {
       if (localProxyFactory == null)
@@ -82,7 +83,7 @@
 
    // EJBHome implementation ----------------------------------------
 
-   public EJBObject createHome(Invocation mi)
+   public EJBObject createHome()
            throws RemoteException, CreateException
    {
       EJBProxyFactory ci = getProxyFactory();
@@ -99,19 +100,27 @@
    /**
     * No-op.
     */
-   public void removeHome(Invocation mi)
+   public void removeHome(Handle handle)
            throws RemoteException, RemoveException
    {
       throw new UnreachableStatementException();
    }
 
+   /**
+    * No-op.
+    */
+   public void removeHome(Object primaryKey)
+           throws RemoteException, RemoveException
+   {
+      throw new UnreachableStatementException();
+   }
+
    // Protected  ----------------------------------------------------
 
    protected void setupHomeMapping()
-           throws Exception
+           throws NoSuchMethodException
    {
       Map map = new HashMap();
-      Class[] args = new Class[]{Invocation.class};
 
       if (homeInterface != null)
       {
@@ -120,17 +129,9 @@
          {
             // Implemented by container
             log.debug("Mapping " + m[i].getName());
-            try
-            {
-               map.put(m[i], getClass().getMethod(m[i].getName() + "Home", args));
-            }
-            catch (NoSuchMethodException e)
-            {
-               log.info(m[i].getName() + " in bean has not been mapped");
-            }
+            map.put(m[i], getClass().getMethod(m[i].getName() + "Home", m[i].getParameterTypes()));
          }
       }
-
       if (localHomeInterface != null)
       {
          Method[] m = localHomeInterface.getMethods();
@@ -138,14 +139,7 @@
          {
             // Implemented by container
             log.debug("Mapping " + m[i].getName());
-            try
-            {
-               map.put(m[i], getBeanClass().getMethod(m[i].getName() + "LocalHome", args));
-            }
-            catch (NoSuchMethodException e)
-            {
-               log.info(m[i].getName() + " in bean has not been mapped");
-            }
+            map.put(m[i], getClass().getMethod(m[i].getName() + "LocalHome", m[i].getParameterTypes()));
          }
       }
 
@@ -175,7 +169,7 @@
 
          try
          {
-            return mi.performCall(StatelessSessionContainer.this, m, new Object[]{mi});
+            return mi.performCall(StatelessSessionContainer.this, m, mi.getArguments());
          }
          catch (Exception e)
          {




More information about the jboss-cvs-commits mailing list