We are working on one project where in we are using JaxWSProxyFactoryBean provided by CXF framework to invoke webservices. I am using SPRING configuration to create clients rather than using API directly in code. I am also setting maintain_session property to make sure session is maintained by WS clients.
<jaxws:client id="userAuthenticationServiceClient1" address="${application.deployment.url}/UserAuthentication" serviceClass="com.authentication.webservice.IUserAuthenticationService" abstract="true" > <jaxws:properties > <entry key="javax.xml.ws.session.maintain"> <value type="java.lang.Boolean">true</value> </entry> </jaxws:properties> </jaxws:client>
But I found that the session is not maintained across various webservices instances. To make it more clear If there are proxy clients like wc1, wc2, wc3. All the operations invoked on wc1 will have its session, while wc2 will create new session. Can someone let me know what settings I need to do so that all the ws clients will share session?