Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-1408

WELD-1307 is breaking OSGi bundles stop process

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Done
    • None
    • None
    • OSGi support
    • None

    Description

      WELD-1307 is removing the bundle from managed map and then the stop task is checking if the bundle is in the map (in the following lines). stop management is then never executed and stop events are not sent as expected.
      This can be easily reproduced with the user guide http://docs.jboss.org/weld/reference/1.2.0.Beta1/weld-osgi/user-guide/html/ch02.html#d0e306 example : "Goodbye World!" is never printed

      at org.jboss.weld.environment.osgi.impl.integration.IntegrationActivator.stopManagement(IntegrationActivator.java:241)

                  if (future == null) {
                  final CDIContainer container = managed.remove(bundle.getBundleId());
      

      but the stop events are fired if

      if (started.get() && managed.containsKey(bundle.getBundleId())) {
      

      Attachments

        Activity

          People

            sutan@redhat.com Sun Seng David Tan (Inactive)
            sutan@redhat.com Sun Seng David Tan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: