Announcement Announcement Module
Collapse

Spring Dynamic Modules forum decommissioned in favor of Eclipse Gemini Blueprint

With the official first release of Eclipse Gemini Blueprint shipped, the migration of the Spring Dynamic Modules code base to the Eclipse Foundation, as part of the Gemini project, has been completed.

As such, this forum has been decommissioned in favour of the Eclipse Gemini forums.
See more
See less
Jetty Activator and org.osgi.service.http.HttpService Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Jetty Activator and org.osgi.service.http.HttpService

    Hi!

    I'm using Spring DM and the web extender with Jetty.

    Were does the code of the Jetty Activator live? I can't find it in the Spring-DM repo...

    Another question: why does the Jetty (and maybe also Tomcat, but haven't checked) server created by Spring-DM not implement org.osgi.service.http.HttpService? I don't want to use Pax Web or the Equinox HttpService, as I need the Web Extender provided by Spring DM, but I would like the Jetty service to be visible as org.osgi.service.http.HttpService as well, so I can, e.g. run a web console such as Felix WebConsole.

    Regards,

    Wolfgang

  • #2
    Regarding the sources, these are available in the trunk and in the -with-dependencies.zip distribution. The service created by SpringDM does not implement the HttpService because it does not aim to address this contract - see the reference documentation for more details.
    I recommend looking at the upcoming RFC-66, WebContainer for OSGi which addresses the issue of web applications inside OSGi.

    Comment


    • #3
      Hi Costin,

      Originally posted by Costin Leau View Post
      Regarding the sources, these are available in the trunk
      We are talking about https://anonsvn.springframework.org/...ing-osgi/trunk, right? I haven't found the Jetty Starter code. Could you please tell me the exact location?

      Originally posted by Costin Leau View Post
      The service created by SpringDM does not implement the HttpService because it does not aim to address this contract - see the reference documentation for more details.
      What I was locking for was running an OSGi-fied web application with Spring DM and the Felix Web Console at the same time. The latter is looking for a regular OSGi HttpService and Spring DM for org.mortbay.jetty.Server, but I didn't manage to have a single instance of Jetty being exposed as both org.mortbay.jetty.Server and org.osgi.service.http.HttpService, so that the same HTTP port can be shared with both the Felix Web Console and my web app.

      Originally posted by Costin Leau View Post
      I recommend looking at the upcoming RFC-66, WebContainer for OSGi which addresses the issue of web applications inside OSGi.
      I hope, this service can be used by both Spring DM and its War Deployer as well as an ordinary HttpService...

      Regards,

      Wolfgang

      Comment


      • #4
        Could you please tell me the exact location?
        The libraries are not hosted in the Spring DM project itself but in a different repo:
        https://springframework.svn.sourcefo...sgi-repo/trunk
        The Jetty bundle sources are available at: https://springframework.svn.sourcefo...po/trunk/jetty

        Comment

        Working...
        X