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

                 Key: CAMEL-2024
                 URL: https://issues.apache.org/activemq/browse/CAMEL-2024
             Project: Apache Camel
          Issue Type: Improvement
    Affects Versions: 2.0.0
            Reporter: Claus Ibsen
             Fix For: 2.1.0, 2.2.0


A web.xml like this
{code:xml}
    <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>
{code}

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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to