Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-974

Spring WS interceptors with injected DAO's @Transactional not working

    XMLWordPrintable

    Details

      Description

      When injecting DAOs within Endpoint intercetors @Transactional is being ignored casing the following exception:

      org.springframework.ws.soap.client.SoapFaultClientException: Could not obtain transaction-synchronized Session for current thread

      If the @EnableWs or sws:annotation-driven is commented out then @Transactional isn't being ignored. Please see reference URL for a detailed explanation.

      I have attached a SpringBoot 1.3.0, Maven 2 example. Run the unit test ApplicationTests to replicate the issue then Comment out the @EnableWs within WebServiceConfig and re-run the test. The unit test will then pass as the CountryDAO will be proxied (i.e. @Transactional is working).

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            asilveri Adrian Silveri
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: