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

camel-serlvet - It should be work with alongside spring loading using context listener

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.0.0
    • 2.1.0
    • None
    • None

    Description

      A web.xml like this

          <listener>
              <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
          </listener>
      
          <servlet>
              <servlet-name>CamelServlet</servlet-name>
              <display-name>Camel Http Transport Servlet</display-name>
              <servlet-class>org.apache.camel.component.servlet.CamelHttpTransportServlet</servlet-class>
              <init-param>
                  <param-name>matchOnUriPrefix</param-name>
                  <param-value>true</param-value>
              </init-param>
          </servlet>
      
          <servlet-mapping>
              <servlet-name>CamelServlet</servlet-name>
              <url-pattern>/services/*</url-pattern>
          </servlet-mapping>
      

      Should be able to work as spring is initialized as its always is using the context listener. The CamelServlet should not try to load or create a spring application context itself.

      Separation of concerns
      Non invasive

      Attachments

        1. camel-2024.patch
          10 kB
          Willem Jiang

        Activity

          People

            njiang Willem Jiang
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: