Claus Ibsen created CAMEL-7789:
----------------------------------
Summary: camel-servlet - Should register in OSGi so karaf web:list
show the servlet url
Key: CAMEL-7789
URL: https://issues.apache.org/jira/browse/CAMEL-7789
Project: Camel
Issue Type: Improvement
Components: camel-servlet, karaf, osgi
Reporter: Claus Ibsen
Priority: Minor
Fix For: Future
Install the camel-example-servlet-rest-blueprint in Karaf.
Do a web:list which shows nothing.
{code}
karaf@root> web:list
ID State Level Web-ContextPath Name
karaf@root>
{code}
It should show the url of the camel-servlet (the alias url)
{code}
<!-- to setup camel servlet with OSGi HttpService -->
<reference id="httpService" interface="org.osgi.service.http.HttpService"/>
<bean class="org.apache.camel.component.servlet.osgi.OsgiServletRegisterer"
init-method="register"
destroy-method="unregister">
<property name="alias" value="/camel-example-servlet-rest-blueprint/rest"/>
<property name="httpService" ref="httpService"/>
<property name="servlet" ref="camelServlet"/>
</bean>
<bean id="camelServlet"
class="org.apache.camel.component.servlet.CamelHttpTransportServlet"/>
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)