My final solution uses the CXF Client (org.apache.cxf.endpoint.Client) directly, constructed using the JaxWs Spring factory bean.

<bean id="cxfClientFactory" class="org.apache.cxf.jaxws.JaxWsClientFactoryBean" scope="prototype"> <property name="serviceClass" value="com.shazam.internal.recognition.webservices.v1.SIFoRInterface"/>
</bean>

Code:

   //"cxfClientFactory" injected via Spring, then...
   cxfClientFactory.setAddress(url);
   Client client = cxfClientFactory.create();

and used:

   Object[] results = client.invoke(aMethodName, aRequest);


That's it.

-Cornel



Benson Margulies wrote:
While the original messsage is long, it doesn't contain the critical
information.

Exactly what combination of API and Spring (or lack of Spring) are you
using to create the clients? What objects are you sharing between
threads?


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email ______________________________________________________________________

Reply via email to