I’ve been using the Rest DSL with the CamelHttpTransportServlet and have had
difficulties in getting it working; after spending some time I discovered it
only appears to work when the “<servlet-name>” in the web.xml is set to
“CamelServlet”.

I did eventually find the solution on how to change the mapping to something
else, which was to use the “endpointProperty” within the restConfiguration
and add a “servletName” value: -

E.g.
        <restConfiguration component="servlet" >
            <endpointProperty key="servletName" value="MyNewServletName"/>
        </restConfiguration>


I think something should be added to the documentation about this assumption
(default servlet name) along with a description of how to configure the
system to use a different servlet name value.




--
View this message in context: 
http://camel.465427.n5.nabble.com/Rest-DSL-documentation-page-CamelHttpTransportServlet-and-servlet-name-tp5778913.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to