I've defined my bean in Spring as per some examples in the CXF tutorial
pages:
<bean id="fooImpl" class="FooServerImpl"></bean>
<jaxws:endpoint id="foo" implementor="#fooImpl"
address="/foo"></jaxws:endpoint>
My FooServerImpl has a reference to the WebServiceContext (because I
have to get to the SerlvetContext for historical reasons).
@Resource
private WebServiceContext _wsContext;
The javadoc on WebServiceContext says that _wsContext is relative to the
request being served:
* A <code>WebServiceContext</code> makes it possible for
* a web service endpoint implementation class to access
* message context and security information relative to
* a request being served.
So, my question is, if FooServerImpl is a Spring singleton (which I
think is the default, at least in the application I'm working on), would
that mean the _wsContext isn't thread safe since it's related to each
request? If I had 2 requests come in simultaneously, the _wsContext for
the 2nd one would clobber the value set for the first request. Yes?
Thanks,
Chris