camel-servlet is using the CamelServlet as the servlet name by default.
You can use the servletName option to specify the servlet name as you want.
Like this

 from("servlet:/hello?servletName=CamelServlet1").transform(simple("Hello 
${header.name}"));


-- 
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) 
(English)
          http://jnn.javaeye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang 
Weibo: willemjiang





On Thursday, September 27, 2012 at 4:26 PM, Elezabeth wrote:

> Hi ,
> 
> Thank you for the suggestion. Actually my issue got resolved . The issue was
> with the name of the servlet that I have defined in the web.xml 
> (http://web.xml) file. 
> 
> When i gave the name of the servlet as *"CamelServlet"* , it worked. 
> 
> */web.xml/* (http://web.xml/*)
> 
> 
> <listener>
> 
> <listener-class>org.springframework.web.context.ContextLoaderListener 
> (http://web.context.ContextLoaderListener)</listener-class>
> </listener>
> 
> <context-param>
> <param-name>contextConfigLocation</param-name>
> <param-value>/WEB-INF/spring/camel-context.xml</param-value>
> </context-param>
> 
> <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-mapping>
> <servlet-name>*CamelServlet*</servlet-name>
> <url-pattern>/services/*</url-pattern>
> </servlet-mapping>
> 
> 
> 
> 
> -----
> Thanks & Regards
> Elz
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-and-tomcat-tp5719942p5720096.html
> Sent from the Camel - Users mailing list archive at Nabble.com 
> (http://Nabble.com).



Reply via email to