User: oberg
Date: 01/02/21 01:55:58
Modified: src/main/org/jboss/ejb/plugins/jrmp/server
JRMPContainerInvoker.java
Log:
Details
Revision Changes Path
1.34 +9 -12
jboss/src/main/org/jboss/ejb/plugins/jrmp/server/JRMPContainerInvoker.java
Index: JRMPContainerInvoker.java
===================================================================
RCS file:
/products/cvs/ejboss/jboss/src/main/org/jboss/ejb/plugins/jrmp/server/JRMPContainerInvoker.java,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- JRMPContainerInvoker.java 2001/02/09 18:56:17 1.33
+++ JRMPContainerInvoker.java 2001/02/21 09:55:57 1.34
@@ -21,6 +21,7 @@
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
+import java.util.Map;
import java.util.HashMap;
import java.util.Properties;
@@ -75,7 +76,7 @@
* @author <a href="mailto:[EMAIL PROTECTED]">Sebastien
Alborini</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Juha Lindfors</a>
- * @version $Revision: 1.33 $
+ * @version $Revision: 1.34 $
*/
public class JRMPContainerInvoker
extends RemoteServer
@@ -96,8 +97,8 @@
// The Stateless Object can be one.
protected EJBObject statelessObject;
- protected HashMap beanMethodInvokerMap;
- protected HashMap homeMethodInvokerMap;
+ protected Map beanMethodInvokerMap;
+ protected Map homeMethodInvokerMap;
protected ContainerInvoker ciDelegate; // Delegate depending on JDK version
@@ -152,17 +153,13 @@
Method[] methods =
((ContainerInvokerContainer)container).getRemoteClass().getMethods();
beanMethodInvokerMap = new HashMap();
for (int i = 0; i < methods.length; i++)
- {
- beanMethodInvokerMap.put(new
Integer(RemoteMethodInvocation.calculateHash(methods[i])), methods[i]);
- }
-
+ beanMethodInvokerMap.put(new
Long(RemoteMethodInvocation.calculateHash(methods[i])), methods[i]);
+
methods = ((ContainerInvokerContainer)container).getHomeClass().getMethods();
homeMethodInvokerMap = new HashMap();
for (int i = 0; i < methods.length; i++)
- {
- homeMethodInvokerMap.put(new
Integer(RemoteMethodInvocation.calculateHash(methods[i])), methods[i]);
- }
-
+ homeMethodInvokerMap.put(new
Long(RemoteMethodInvocation.calculateHash(methods[i])), methods[i]);
+
try
{
@@ -170,7 +167,7 @@
Method getEJBObjectMethod =
Class.forName("javax.ejb.Handle").getMethod("getEJBObject", new Class[0]);
// Hash it
- homeMethodInvokerMap.put(new
Integer(RemoteMethodInvocation.calculateHash(getEJBObjectMethod)),getEJBObjectMethod);
+ homeMethodInvokerMap.put(new
Long(RemoteMethodInvocation.calculateHash(getEJBObjectMethod)),getEJBObjectMethod);
} catch (Exception e)
{
Logger.exception(e);