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

There are more default HandlerAdapters in Spring-MVC

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5 M1, 1.0.3
    • Fix Version/s: 1.5 M2
    • Component/s: Documentation
    • Labels:
      None

      Description

      In 'Wiring up Spring-WS in a DispatcherServlet' (Chapter 5.2.2 in documentation for 1.0.3, and Chapter 5.3.2 in documentation for 1.5) you write:

      'Note that by explicitely adding the WebServiceMessageReceiverHandlerAdapter, the dispatcher servlet does not load the default adapters, and is unable to handle standard Spring-MVC Controllers. Therefore, we add the SimpleControllerHandlerAdapter at the end.'

      It should also be noted, that there are more default adapters configured in Spring-MVC and not only the SimpleControllerHandlerAdapter. I had to add the HttpRequestHandlerAdapter for example to get Hessian functionality again.

      Currently Spring-MVC configures these adapters:

      org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter
      org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter
      org.springframework.web.servlet.mvc.throwaway.ThrowawayControllerHandlerAdapter
      org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter

      BTW: typo: 'explicitly' - not 'explicitely'

        Activity

        Hide
        arjen.poutsma Arjen Poutsma added a comment -

        Fixed. Thanks for the pointer!

        Show
        arjen.poutsma Arjen Poutsma added a comment - Fixed. Thanks for the pointer!
        Hide
        arjen.poutsma Arjen Poutsma added a comment -

        Closing 1.5 M2 issues.

        Show
        arjen.poutsma Arjen Poutsma added a comment - Closing 1.5 M2 issues.

          People

          • Assignee:
            arjen.poutsma Arjen Poutsma
            Reporter:
            ojs Oliver Siegmar
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: