Hi Richard

On Fri, Feb 18, 2011 at 12:24 AM, Richard Kettelerij
<richardkettele...@gmail.com> wrote:
>
> As an alternative to the aforementioned approach can also use Spring's
> ContextLoaderServlet instead of ContextLoaderListener. In that case you'll
> need to start ContextLoaderServlet after CamelHttpTransportServlet e.g:
>
>  <servlet>
>        <servlet-name>CamelServlet</servlet-name>
>        <servlet-class>
>            org.apache.camel.component.servlet.CamelHttpTransportServlet
>        </servlet-class>
>        <load-on-startup>1</load-on-startup>
>  </servlet>
> <servlet>
>        <servlet-name>context</servlet-name>
>        <servlet-class>
>          org.springframework.web.context.ContextLoaderServlet
>        </servlet-class>
>        <load-on-startup>2</load-on-startup>
> </servlet>
>

Yeah that would also be my preferred solution. With the servlets you
can control the startup ordering with the <load-on-startup>.

Do you mind adding that to the servlet wiki page?




> Of course you can also use CamelHttpTransportServlet build-in support for
> loading the application context as outlined by Willem.
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-and-Tomcat-tp3386793p3390331.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to