-
Nov 19th, 2008, 08:43 AM
#1
PayloadRootQNameEndpointMapping and prototype AbstractMarshallingPayloadEndpoint
I have an end point in my webservice that is mapped to an abstract marshalling payload end point like so:
<bean name="endpointMapping" class="org.springframework.ws.server.endpoint.mapp ing.PayloadRootQNameEndpointMapping">
<property name="mappings">
<props>
<prop key="REQUEST">myEndPoint</prop>
</props>
</property>
</bean>
<bean name="myEndPoint" class="com.packagename.MyEndPoint" scope="prototype">
<property name="marshaller" ref="jaxb2Marshaller"/>
<property name="unmarshaller" ref="jaxb2Marshaller"/>
<property name="rootChainItem" ref="chainItemManager"></property>
</bean>
The rootChainItem property of the end point is a bean that also has scope prototype. When the framework receives a request it does forward it to the right end point but it does not create a new instance of the endpoint (MyEndPoint), it forwards all the requests to the same instance of MyEndPoint which is causing a threading issue in my service. Any idea why this is so?
Thanks.
-
Apr 23rd, 2009, 10:23 PM
#2
can someone please answer this question. or is someone solved please let me know
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules