Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-3549

It should be possible to configure the CamelHttpTransportServlet using the spring ContextLoaderListener

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5.0
    • 2.7.0
    • camel-servlet
    • None

    Description

      The spring security example uses two different spring contexts.

      The first is pulled up using the spring ContextLoaderListener. It is used to hook spring security into a filter.
      The second is pulled up by the CamelHttpTransportServlet. There is the main configuration includeing the camel context.

      I think this is quite ugly and makes things more complicated than they need to be. Especially if you also need the camel context outside the camel servlet.

      So I propose to change the code of the Camel Servlet component to simply use the spring context from the ContextLoaderListener. I can try to do the change myself but would be happy for any comments why this was designed so and where I have to be careful.

      Attachments

        1. camel-servlet-3549.patch
          20 kB
          Christian Schneider

        Issue Links

          Activity

            People

              cschneider Christian Schneider
              cschneider Christian Schneider
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: