[jboss-cvs] JBossAS SVN: r74572 - projects/ejb3/trunk/proxy/src/main/java/org/jboss/ejb3/proxy/handler/session.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sat Jun 14 20:32:08 EDT 2008


Author: ALRubinger
Date: 2008-06-14 20:32:07 -0400 (Sat, 14 Jun 2008)
New Revision: 74572

Modified:
   projects/ejb3/trunk/proxy/src/main/java/org/jboss/ejb3/proxy/handler/session/SessionProxyInvocationHandlerBase.java
Log:
[EJBTHREE-1345] Adjust for null arguments in Session Invocation

Modified: projects/ejb3/trunk/proxy/src/main/java/org/jboss/ejb3/proxy/handler/session/SessionProxyInvocationHandlerBase.java
===================================================================
--- projects/ejb3/trunk/proxy/src/main/java/org/jboss/ejb3/proxy/handler/session/SessionProxyInvocationHandlerBase.java	2008-06-15 00:18:01 UTC (rev 74571)
+++ projects/ejb3/trunk/proxy/src/main/java/org/jboss/ejb3/proxy/handler/session/SessionProxyInvocationHandlerBase.java	2008-06-15 00:32:07 UTC (rev 74572)
@@ -102,20 +102,7 @@
          log.debug("Couldn't handle invocation directly within Proxy " + InvocationHandler.class.getName() + ": "
                + nefdie.getMessage());
       }
-
-      // Obtain container name
-      String containerName = StringUtils.adjustWhitespaceStringToNull(this.getContainerName());
-      assert containerName != null : "Container name for invocation must be specified";
-
-      // Assemble arguments for invocation
-      List<Object> invocationArguments = new ArrayList<Object>();
-      // Add proxy as argument
-      invocationArguments.add(proxy);
-      // Add invoked method as argument
-      invocationArguments.add(invokedMethod);
-      // Add rest of arguments
-      invocationArguments.add(args);
-
+      
       /*
        * Obtain the Container
        */
@@ -126,9 +113,8 @@
        */
 
       // Invoke
-      SerializableMethod methodToInvoke = new SerializableMethod(method);
-      log.debug("Invoking: " + methodToInvoke + " with arguments " + args + "...");
-      Object result = container.invoke(proxy, methodToInvoke, args);
+      log.debug("Invoking: " + invokedMethod + " with arguments " + args + "...");
+      Object result = container.invoke(proxy, invokedMethod, args);
 
       // Return
       return result;




More information about the jboss-cvs-commits mailing list