Author: darran.lofthouse(a)jboss.com
Date: 2007-08-02 18:06:49 -0400 (Thu, 02 Aug 2007)
New Revision: 4125
Modified:
branches/jbossws-2.0/jbossws-core/src/main/java/org/jboss/ws/core/jaxrpc/client/ServiceImpl.java
branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxrpc/jbws1653/JBWS1653TestCase.java
Log:
JBWS-1771 - Post-handler-chain not invoked for 'Standard Client' configuration
with DII client.
Modified:
branches/jbossws-2.0/jbossws-core/src/main/java/org/jboss/ws/core/jaxrpc/client/ServiceImpl.java
===================================================================
---
branches/jbossws-2.0/jbossws-core/src/main/java/org/jboss/ws/core/jaxrpc/client/ServiceImpl.java 2007-08-02
21:23:20 UTC (rev 4124)
+++
branches/jbossws-2.0/jbossws-core/src/main/java/org/jboss/ws/core/jaxrpc/client/ServiceImpl.java 2007-08-02
22:06:49 UTC (rev 4125)
@@ -44,6 +44,7 @@
import org.jboss.logging.Logger;
import org.jboss.ws.core.StubExt;
+import org.jboss.ws.integration.ResourceLoaderAdapter;
import org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder;
import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
import org.jboss.ws.metadata.umdm.EndpointMetaData;
@@ -53,7 +54,6 @@
import org.jboss.ws.metadata.umdm.ServiceMetaData;
import org.jboss.ws.metadata.umdm.UnifiedMetaData;
import org.jboss.ws.metadata.wsse.WSSecurityConfiguration;
-import org.jboss.ws.integration.ResourceLoaderAdapter;
import org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedCallPropertyMetaData;
import org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedInitParamMetaData;
import org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedPortComponentRefMetaData;
@@ -410,7 +410,7 @@
// JBoss-4.0.x does not support <stub-properties>
if (initCallProperties(call, seiClass.getName()) > 0)
log.info("Deprecated use of <call-properties> on JAXRPC Stub. Use
<stub-properties>");
-
+
PortProxy handler = new PortProxy(call);
ClassLoader cl = epMetaData.getClassLoader();
Remote proxy = (Remote)Proxy.newProxyInstance(cl, new Class[] { seiClass,
Stub.class, StubExt.class }, handler);
@@ -444,10 +444,12 @@
private int initCallProperties(CallImpl call, String seiName)
{
+ setupHandlerChain(call.getEndpointMetaData());
+
// nothing to do
if (usrMetaData == null)
return 0;
-
+
int propCount = 0;
// General properties
@@ -471,7 +473,7 @@
}
}
}
-
+
return propCount;
}
@@ -520,11 +522,11 @@
log.debug("Adding client side handler to endpoint '" + portName
+ "': " + info);
handlerInfos.add(info);
}
-
+
// register the handlers with the client engine
if (handlerInfos.size() > 0)
registerHandlerChain(portName, handlerInfos, handlerRoles);
-
+
epMetaData.setHandlersInitialized(true);
}
}
Modified:
branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxrpc/jbws1653/JBWS1653TestCase.java
===================================================================
---
branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxrpc/jbws1653/JBWS1653TestCase.java 2007-08-02
21:23:20 UTC (rev 4124)
+++
branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxrpc/jbws1653/JBWS1653TestCase.java 2007-08-02
22:06:49 UTC (rev 4125)
@@ -156,7 +156,7 @@
public void testCustomConfigConfiguredDII() throws Exception
{
- if (true)
+ if (false)
{
System.out.println("FIXME: [JBWS-1771] Post-handler-chain not invoked for
\"Standard Client\" configuration with DII client");
return;