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

CXFServlet should pull the Spring ApplicationContext out of the ServletContext if it is available

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0-M1
    • None
    • None

    Description

      If a user already has a spring instance running, we should take advantage of that and use their context as our parent context. This can be done by doing:

      ServletContext servletCtx = getServletContext();
      ApplicationContext parent = (ApplicationContext) servletCtx.getAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE);

      This parent context should then be used to create a SpringBus.

      Attachments

        Activity

          People

            njiang Willem Jiang
            dandiep Daniel Diephouse
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: