Author: richard.opalka(a)jboss.com
Date: 2010-12-14 05:56:44 -0500 (Tue, 14 Dec 2010)
New Revision: 13482
Modified:
common/trunk/src/main/java/org/jboss/wsf/common/invocation/AbstractInvocationHandlerJSE.java
Log:
rollback commit r13471 - [JBWS-3177] previous fix was wrong - this is the proper one
Modified:
common/trunk/src/main/java/org/jboss/wsf/common/invocation/AbstractInvocationHandlerJSE.java
===================================================================
---
common/trunk/src/main/java/org/jboss/wsf/common/invocation/AbstractInvocationHandlerJSE.java 2010-12-14
10:49:32 UTC (rev 13481)
+++
common/trunk/src/main/java/org/jboss/wsf/common/invocation/AbstractInvocationHandlerJSE.java 2010-12-14
10:56:44 UTC (rev 13482)
@@ -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