Hi
i would like to do a concurrent test of a stateful web service that uses the
jax-ws session support.
Basically this means that every jax-ws client must use a different
JSESSIONID.
I did the following to enable the session support on the client side:
BindingProvider client = (BindingProvider) ws;
client.getRequestContext().put(SESSION_MAINTAIN_PROPERTY, true);
But every thread that uses the same ws client definition share the same
JSESSIONID.
I think i have to resort to having several different jax-ws client:
<jaxws:client id="wsClient"
serviceClass="com.sinapsi.ws.ext.polimi.interfaces.PolimiWebService"
address="http://localhost:${ws.port}/${ws.path}/polimi" >
<jaxws:dataBinding>
<ref bean="aegis" />
</jaxws:dataBinding>
</jaxws:client>
<jaxws:client id="wsClient2"
serviceClass="com.sinapsi.ws.ext.polimi.interfaces.PolimiWebService"
address="http://localhost:${ws.port}/${ws.path}/polimi" >
<jaxws:dataBinding>
<ref bean="aegis" />
</jaxws:dataBinding>
</jaxws:client>
....
Is there another way to cope with that ?
Isn't there a prototype scope for jax-ws client ?
Thanks
Nicola