Results 1 to 2 of 2

Thread: PayloadRootQNameEndpointMapping and prototype AbstractMarshallingPayloadEndpoint

  1. #1
    Join Date
    Jan 2008
    Posts
    11

    Default 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. #2
    Join Date
    Apr 2009
    Posts
    18

    Default

    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
  •