Issue Type: Bug Bug
Assignee: Jozef Hartinger
Components: OSGi support
Created: 15/Apr/13 11:07 AM
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())) {
Fix Versions: 1.2.0.CR1
Project: Weld
Priority: Major Major
Reporter: Sun Seng David TAN
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira