camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From navaltiger <vijay.ra...@gmail.com>
Subject Re: Multipart form data and servlet/restlet endpoint
Date Fri, 14 Nov 2014 04:18:47 GMT
Hi,

Could do it following way.  Will upload whole project at GitHub following
way.  
-- web.xml --
<web-app>

	<display-name>Archetype Created Web Application</display-name>
	<listener>
		<listener-class>
			org.springframework.web.context.ContextLoaderListener
		</listener-class>
	</listener>
	
	<context-param>
		<param-name>contextConfigLocation</param-name>
		<param-value>/WEB-INF/applicationContext.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>/*</url-pattern>
	</servlet-mapping> 
	

	<filter>
		<filter-name>MultipartFilter</filter-name>
		<filter-class>org.eclipse.jetty.servlets.MultiPartFilter</filter-class>
	</filter> 
	<filter-mapping>
		<filter-name>MultipartFilter</filter-name>
		<servlet-name>CamelServlet</servlet-name> 
	</filter-mapping>
</web-app>




--
View this message in context: http://camel.465427.n5.nabble.com/Multipart-form-data-and-servlet-restlet-endpoint-tp5758948p5759081.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message