Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-9424

Provide the ability to deploy OSGi bundles

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 3.3.0.M3
    • Component/s: server
    • Labels:
      None

      Description

      AS7 supports OSGi bundles as deployments, and Eclipse supports the creation of OSGi bundles through the built-in PDE tooling (see [1] for an example). However, OSGi bundles developed with Eclipse PDE can't be deployed via the JBDS to AS7 yet.

      Support for deploying OSGi bundles to AS7 should be added to the JBoss Tooling.

      [1] https://docs.jboss.org/author/display/AS7/Helloworld+OSGi+quickstart

        Gliffy Diagrams

          Activity

          Hide
          rob.stryker Rob Stryker added a comment -

          It seems that the current implementation functions exactly as well as the OSGi launch configuration, and the export mechanism. They allow you to select which modules to include, but do no real dependency management in demanding a required bundle gets included. Export doesn't show an error if you try to export MasterBundle without exporting DependencyBundle. The launch config behaves similarly, without even a warning.

          In this regard, I'd declare that this jira is closed.

          It seems in the OSGi launch configuration, it pre-selects "Equinox" as the only possible implementation. I'd need a lot of help from an AS developer to learn how to launch an absolutely bare-bones AS7 OSGi configuration and include the selected bundles in it on-the-fly. I don't think that is something that can be addressed by this JIRA and is not feasible in the short term future. If you have specific ideas or details how that can be accomplished, please feel free to open another JIRA with that request

          Show
          rob.stryker Rob Stryker added a comment - It seems that the current implementation functions exactly as well as the OSGi launch configuration, and the export mechanism. They allow you to select which modules to include, but do no real dependency management in demanding a required bundle gets included. Export doesn't show an error if you try to export MasterBundle without exporting DependencyBundle. The launch config behaves similarly, without even a warning. In this regard, I'd declare that this jira is closed. It seems in the OSGi launch configuration, it pre-selects "Equinox" as the only possible implementation. I'd need a lot of help from an AS developer to learn how to launch an absolutely bare-bones AS7 OSGi configuration and include the selected bundles in it on-the-fly. I don't think that is something that can be addressed by this JIRA and is not feasible in the short term future. If you have specific ideas or details how that can be accomplished, please feel free to open another JIRA with that request
          Hide
          bosschaert David Bosschaert added a comment - - edited

          Rob wrote: It seems that the current implementation functions exactly as well as the OSGi launch configuration, and the export mechanism. They allow you to select which modules to include, but do no real dependency management in demanding a required bundle gets included.

          You are right that the OSGi launch configuration doesn't force you to do things, but it does help in some regard. By clicking the 'Add Required Bundles' it figures out (by walking Import-Package, Require-Bundle and Fragment-Host headers) what other bundles could be included to satisfy bundle dependencies and selects them for you.
          Another useful aspect here is the ability to specify start levels and whether a bundle should be started at all.

          However I agree that this is a larger piece of work and should probably be tracked in another bug

          Show
          bosschaert David Bosschaert added a comment - - edited Rob wrote: It seems that the current implementation functions exactly as well as the OSGi launch configuration, and the export mechanism. They allow you to select which modules to include, but do no real dependency management in demanding a required bundle gets included. You are right that the OSGi launch configuration doesn't force you to do things, but it does help in some regard. By clicking the 'Add Required Bundles' it figures out (by walking Import-Package, Require-Bundle and Fragment-Host headers) what other bundles could be included to satisfy bundle dependencies and selects them for you. Another useful aspect here is the ability to specify start levels and whether a bundle should be started at all. However I agree that this is a larger piece of work and should probably be tracked in another bug
          Hide
          bosschaert David Bosschaert added a comment -

          One thing I noticed is that if pax-runner seems to provide a nice integration for running OSGi frameworks through Eclipse. See here: http://eclipsesource.com/blogs/2009/08/14/eclipse-osgi-and-pax-runner/

          It might be worth getting AS7 listed as an OSGi framework in Pax Runner as well, so we take advantage of this tooling...

          Show
          bosschaert David Bosschaert added a comment - One thing I noticed is that if pax-runner seems to provide a nice integration for running OSGi frameworks through Eclipse. See here: http://eclipsesource.com/blogs/2009/08/14/eclipse-osgi-and-pax-runner/ It might be worth getting AS7 listed as an OSGi framework in Pax Runner as well, so we take advantage of this tooling...
          Hide
          fbricon Fred Bricon added a comment -

          Looks like it duplicates functionality with the Libra project : http://jaxenter.com/eclipse-libra-wtp-and-pde-working-together-37638.html

          Show
          fbricon Fred Bricon added a comment - Looks like it duplicates functionality with the Libra project : http://jaxenter.com/eclipse-libra-wtp-and-pde-working-together-37638.html
          Hide
          lzoubek Libor Zoubek added a comment -

          verified on 3.3.0.M3-H18

          Show
          lzoubek Libor Zoubek added a comment - verified on 3.3.0.M3-H18

            People

            • Assignee:
              lzoubek Libor Zoubek
              Reporter:
              bosschaert David Bosschaert
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development