[jboss-jira] [JBoss JIRA] Updated: (JBDEPLOY-226) Allow multiple deployments to change state at once

Thomas Diesler (JIRA) jira-events at lists.jboss.org
Fri Feb 5 05:30:20 EST 2010


     [ https://jira.jboss.org/jira/browse/JBDEPLOY-226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Diesler updated JBDEPLOY-226:
------------------------------------

    Priority: Critical  (was: Major)


Raised to critical, because it seems to be the prerequisite of many resolver issues

Consider

org.osgi.cmpn
   Export-Package: org.osgi.service.http
   Import-Package: javax.servlet;resolution:=optional

apache.jetty
    Export-Package: javax.servlet
    Import-Package: javax.servlet, org.osgi.service.http

Both bundles are INSTALLED none is RESOLVED
When either bundle gets resolved (the framework can do this at any time for example due to a classload) it is necessary that they get wired to each other.

Generally, when you resolve a bundle you cannot just do that against the set of already resolved bundles. A consistent class space can in most cases only be reached by considering the already resolved bundles plus the set of installed bundles that are available for resolution.

> Allow multiple deployments to change state at once
> --------------------------------------------------
>
>                 Key: JBDEPLOY-226
>                 URL: https://jira.jboss.org/jira/browse/JBDEPLOY-226
>             Project: JBoss Deployers
>          Issue Type: Feature Request
>          Components: deployer
>            Reporter: Thomas Diesler
>            Assignee: Ales Justin
>            Priority: Critical
>             Fix For: JBDEPLOY-2.2.x
>
>
> Currently the BundleManager can only reslove bundles one-by-one
>          deployerClient.change(unit.getName(), DeploymentStages.CLASSLOADER);
>          deployerClient.checkComplete(unit.getName());
>          bundleState.changeState(Bundle.RESOLVED);
> this results in uglyness in PackageAdmin
>       int resolved = 1;
>       while (resolved > 0)
>       {
>          resolved = 0;
>          Iterator<OSGiBundleState> it = resolvableBundles.iterator();
>          while (it.hasNext())
>          {
>             OSGiBundleState bundleState = it.next();
>             if (bundleManager.resolveBundle(bundleState, false))
>             {
>                it.remove();
>                resolved++;
>             }
>          }
>       }
> PackageAdmin should be able to use an API that resolves multiple deployemnts at once. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list