<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0
           https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">

	<reference id="httpService" interface="org.osgi.service.http.HttpService" />

	<bean id="camelServlet" class="org.apache.camel.component.servlet.CamelHttpTransportServlet"/>

	<bean class="org.apache.camel.component.osgi.OsgiServletRegisterer"
         init-method="register"
         destroy-method="unregister">
		<property name="servletName" value="httpServlet" />
		<property name="alias" value="/camel/services" />
		<property name="httpService" ref="httpService" />
		<property name="servlet" ref="camelServlet" />
	</bean>

	<bean id="servlet" class="org.apache.camel.component.servlet.ServletComponent" />

	<camelContext xmlns="http://camel.apache.org/schema/blueprint">
		<route>
			<from uri="servlet://hello1?servletName=httpServlet" />
			<setBody>
				<constant>Hello 1</constant>
			</setBody>
		</route>
	</camelContext>

</blueprint>