Author: richard.opalka(a)jboss.com
Date: 2010-12-14 05:45:50 -0500 (Tue, 14 Dec 2010)
New Revision: 13480
Modified:
common/branches/jbossws-common-1.4.1/src/main/java/org/jboss/wsf/common/invocation/AbstractInvocationHandlerJSE.java
Log:
rollback commit r13468 - [JBWS-3177] previous fix was wrong - this is the proper one
Modified:
common/branches/jbossws-common-1.4.1/src/main/java/org/jboss/wsf/common/invocation/AbstractInvocationHandlerJSE.java
===================================================================
---
common/branches/jbossws-common-1.4.1/src/main/java/org/jboss/wsf/common/invocation/AbstractInvocationHandlerJSE.java 2010-12-13
22:26:58 UTC (rev 13479)
+++
common/branches/jbossws-common-1.4.1/src/main/java/org/jboss/wsf/common/invocation/AbstractInvocationHandlerJSE.java 2010-12-14
10:45:50 UTC (rev 13480)
@@ -22,8 +22,6 @@
package org.jboss.wsf.common.invocation;
import java.lang.reflect.Method;
-import java.util.LinkedList;
-import java.util.List;
import javax.naming.Context;
import javax.naming.InitialContext;
@@ -44,7 +42,7 @@
private static final String POJO_JNDI_PREFIX = "java:comp/env/";
- private List<Long> initializedEndpoints = new LinkedList<Long>();
+ private boolean initialized;
/**
* Constructor.
@@ -94,12 +92,11 @@
}
}
- final long targetBeanId = System.identityHashCode(targetBean);
- if (!this.initializedEndpoints.contains(targetBeanId))
+ if (!this.initialized)
{
// notify subclasses
this.onEndpointInstantiated(endpoint, invocation);
- this.initializedEndpoints.add(targetBeanId);
+ this.initialized = true;
}
return targetBean;
Show replies by date