camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CAMEL-2024) camel-serlvet - It should be work with alongside spring loading using context listener
Date Fri, 18 Sep 2009 12:14:51 GMT

    [ https://issues.apache.org/activemq/browse/CAMEL-2024?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=54341#action_54341
] 

Claus Ibsen commented on CAMEL-2024:
------------------------------------

What is required now is to add a init parameter to the servlet
{code}
    <!-- set the camel context application file location here -->
    <init-param>
      <param-name>contextConfigLocation</param-name>
	  <param-value>/org/apache/camel/component/servlet/camelContext.xml</param-value>
    </init-param>
{code}

Which is not cool. For example you cannot have it in WEB-INF/applicationContext.xml as many
people will have.

> 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.


Mime
View raw message