Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-7789

camel-servlet - Should register in OSGi so karaf web:list show the servlet url

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 2.14.0
    • Future
    • camel-servlet, karaf, osgi
    • None
    • Unknown

    Description

      Install the camel-example-servlet-rest-blueprint in Karaf.

      Do a web:list which shows nothing.

      karaf@root> web:list
         ID   State         Level  Web-ContextPath           Name
      karaf@root>
      

      It should show the url of the camel-servlet (the alias url)

        <!-- 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"/>
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: