Yes.....
Benson Margulies wrote:
And you are using that client object, unprotected by a syncronization,
in multiple threads?
On Wed, Mar 11, 2009 at 10:32 AM, Cornel Masson
<[email protected]> wrote:
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
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________