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