Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-1074

@Resource private WebServiceContext context can't be injected when using the spring transaction enhancement

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0, 2.0.1, 2.0.2
    • 2.0.4
    • JAX-WS Runtime
    • None

    Description

      Here the parts of the spring configuration file
      <bean id="userService" parent="txProxyTemplate">
      <property name="target">
      <bean
      class="test.UserServiceImpl"
      autowire="byName" />
      </property>
      </bean>

      <jaxws:endpoint id="userWebService" implementor="#userService"
      address="/userWebService">
      </jaxws:endpoint>

      I can't read any context in the test.UserServiceImpl even I declare the @Resource private WebServiceContext context in it.
      But when I removed the txProxyTemplate from userService , I got the context in test.UserServiceImpl.

      Attachments

        Issue Links

          Activity

            People

              njiang Willem Jiang
              njiang Willem Jiang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: