Announcement Announcement Module
Collapse
No announcement yet.
PayloadRootQNameEndpointMapping and prototype AbstractMarshallingPayloadEndpoint Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

  • #2
    can someone please answer this question. or is someone solved please let me know

    Comment

    Working...
    X