You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2014/09/07 10:51:28 UTC

[jira] [Updated] (CAMEL-7789) camel-servlet - Should register in OSGi so karaf web:list show the servlet url

     [ https://issues.apache.org/jira/browse/CAMEL-7789?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-7789:
-------------------------------
    Affects Version/s: 2.14.0

> 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
>    Affects Versions: 2.14.0
>            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)