Examples of uninstallBundle()


Examples of org.jboss.osgi.framework.BundleManagement.uninstallBundle()

    public void uninstallBundle(Deployment dep) {
        log.tracef("Uninstall deployment: %s", dep);

        // Always uninstall from the bundle manager
        BundleManagement bundleManager = injectedBundleManager.getValue();
        bundleManager.uninstallBundle(dep);

        try {
            // Undeploy through the deployment manager
            DeploymentPlanBuilder builder = deploymentManager.newDeploymentPlan();
            String contextName = DeploymentHolderService.getContextName(dep);
View Full Code Here

Examples of org.jboss.osgi.framework.BundleManagement.uninstallBundle()

     */
    public synchronized void stop(StopContext context) {
        log.infof("Uninstalling deployment: %s", deployment);
        try {
            BundleManagement bundleManager = injectedBundleManager.getValue();
            bundleManager.uninstallBundle(deployment);
        } catch (Throwable t) {
            log.errorf(t, "Failed to uninstall deployment: %s", deployment);
        }

        // [JBAS-8801] Undeployment leaks root deployment service
View Full Code Here

Examples of org.jboss.osgi.framework.BundleManager.uninstallBundle()

    public synchronized void stop(StopContext context) {
        ServiceController<?> controller = context.getController();
        LOGGER.tracef("Stopping: %s in mode %s", controller.getName(), controller.getMode());
        try {
            BundleManager bundleManager = injectedBundleManager.getValue();
            bundleManager.uninstallBundle(deployment);
        } catch (Throwable t) {
            LOGGER.errorFailedToUninstallDeployment(t, deployment);
        }
    }
}
View Full Code Here

Examples of org.jboss.osgi.framework.BundleManagerService.uninstallBundle()

    public synchronized void stop(StopContext context) {
        ServiceController<?> controller = context.getController();
        ROOT_LOGGER.debugf("Stopping: %s in mode %s", controller.getName(), controller.getMode());
        try {
            BundleManagerService bundleManager = injectedBundleManager.getValue();
            bundleManager.uninstallBundle(deployment);
        } catch (Throwable t) {
            ROOT_LOGGER.failedToUninstallDeployment(t, deployment);
        }

        // [JBAS-8801] Undeployment leaks root deployment service
View Full Code Here

Examples of org.jboss.osgi.framework.BundleManagerService.uninstallBundle()

    public synchronized void stop(StopContext context) {
        ServiceController<?> controller = context.getController();
        log.debugf("Stoppping: %s in mode %s", controller.getName(), controller.getMode());
        try {
            BundleManagerService bundleManager = injectedBundleManager.getValue();
            bundleManager.uninstallBundle(deployment);
        } catch (Throwable t) {
            log.errorf(t, "Failed to uninstall deployment: %s", deployment);
        }

        // [JBAS-8801] Undeployment leaks root deployment service
View Full Code Here

Examples of org.jboss.osgi.framework.BundleManagerService.uninstallBundle()

    public synchronized void stop(StopContext context) {
        ServiceController<?> controller = context.getController();
        log.debugf("Stoppping: %s in mode %s", controller.getName(), controller.getMode());
        try {
            BundleManagerService bundleManager = injectedBundleManager.getValue();
            bundleManager.uninstallBundle(deployment);
        } catch (Throwable t) {
            log.errorf(t, "Failed to uninstall deployment: %s", deployment);
        }

        // [JBAS-8801] Undeployment leaks root deployment service
View Full Code Here

Examples of org.jboss.osgi.framework.bundle.BundleManager.uninstallBundle()

     */
    public synchronized void stop(StopContext context) {
        log.tracef("Uninstalling deployment: %s", deployment);
        try {
            BundleManager bundleManager = injectedBundleManager.getValue();
            bundleManager.uninstallBundle(deployment);
        } catch (Throwable t) {
            log.errorf(t, "Failed to uninstall deployment: %s", deployment);
        }

        // [JBAS-8801] Undeployment leaks root deployment service
View Full Code Here

Examples of org.jboss.osgi.framework.bundle.BundleManager.uninstallBundle()

     */
    public synchronized void stop(StopContext context) {
        log.tracef("Uninstalling deployment: %s", deployment);
        try {
            BundleManager bundleManager = injectedBundleManager.getValue();
            bundleManager.uninstallBundle(deployment);

            ServiceController<?> controller = context.getController();
            ServiceContainer serviceContainer = controller.getServiceContainer();
            controller.setMode(Mode.REMOVE);

View Full Code Here

Examples of org.osgi.jmx.framework.FrameworkMBean.uninstallBundle()

        } catch (Exception e) {
            fail("Installation of test bundle shouldn't fail");
        }
       
        try{
            framework.uninstallBundle(bundleId);
        } catch (Exception e) {
            fail("Uninstallation of test bundle shouldn't fail");
        }
    }
View Full Code Here

Examples of org.osgi.jmx.framework.FrameworkMBean.uninstallBundle()

        } catch (Exception e) {
            fail("Installation of test bundle shouldn't fail");
        }
       
        try{
            framework.uninstallBundle(bundleId);
        } catch (Exception e) {
            fail("Uninstallation of test bundle shouldn't fail");
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.