Author: alesj
Date: 2009-12-02 17:08:19 -0500 (Wed, 02 Dec 2009)
New Revision: 97328
Modified:
projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/bundle/OSGiBundleManager.java
Log:
Synch on unit.
Modified:
projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/bundle/OSGiBundleManager.java
===================================================================
---
projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/bundle/OSGiBundleManager.java 2009-12-02
22:02:38 UTC (rev 97327)
+++
projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/bundle/OSGiBundleManager.java 2009-12-02
22:08:19 UTC (rev 97328)
@@ -151,7 +151,7 @@
private MainDeployerStructure deployerStructure;
/** The deployment registry */
- private final DeploymentRegistry registry;
+ private DeploymentRegistry registry;
/** The instance metadata factory */
private MetaDataRetrievalFactory factory;
@@ -366,7 +366,7 @@
DeploymentUnit unit = registry.getDeployment(context);
if (unit != null)
{
- synchronized (registry)
+ synchronized (unit)
{
OSGiBundleState bundleState = unit.getAttachment(OSGiBundleState.class);
if (bundleState == null)
Show replies by date