Examples of startBundle()


Examples of org.jboss.osgi.framework.spi.BundleManager.startBundle()

                BundleActivator instance = (BundleActivator) componentInstance.getInstance();
                deployment.addAttachment(BundleActivator.class, instance);
            }
            OperationAssociation.INSTANCE.setAssociation(new ModelNode("deploy"));
            try {
                bundleManager.startBundle(bundle, Bundle.START_ACTIVATION_POLICY);
                depUnit.putAttachment(Attachments.BUNDLE_STATE_KEY, BundleState.ACTIVE);
            } catch (BundleException ex) {
                throw MESSAGES.cannotStartBundle(ex, bundle);
            } finally {
                OperationAssociation.INSTANCE.removeAssociation();
View Full Code Here

Examples of org.ops4j.pax.swissbox.framework.RemoteFramework.startBundle()

            Collections.<String, String> emptyMap(), frameworkProperties);
        framework.start();

        long bundleId = framework
            .installBundle("file:target/bundles/regression-pde-bundle-2.3.0.jar");
        framework.startBundle(bundleId);

        framework.callService("(objectClass=org.ops4j.pax.exam.regression.pde.HelloService)",
            "getMessage");

        Thread.sleep(3000);
View Full Code Here

Examples of org.ops4j.pax.swissbox.framework.RemoteFramework.startBundle()

            bootClasspath);
        framework.start();

        File testBundle = generateBundle();
        long bundleId = framework.installBundle("file:" + testBundle.getAbsolutePath());
        framework.startBundle(bundleId);

        // START>>> not yet implemented
        // framework.waitForState(bundleId, Bundle.ACTIVE, 1500);
        Thread.sleep(3000);
        // <<<END not yet implemented
View Full Code Here

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

                        if (start){
                            if(mgr instanceof RemoteDeploymentManager) {
                                MBeanServerConnection mbsc = ((RemoteDeploymentManager) mgr).getJMXConnector().getMBeanServerConnection();
                                try {
                                    FrameworkMBean frameworkMBean = getFrameworkMBean(mbsc);
                                    frameworkMBean.startBundle(bundleId);
                                    consoleReader.printString(DeployUtils.reformat("Started bundle: " + bundleId, 4, 72));
                                } catch (Exception e) {
                                    throw new DeploymentException("Unable to start bundle.", e);
                                }
                               
View Full Code Here

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

                        if (start){
                            if(mgr instanceof RemoteDeploymentManager) {
                                MBeanServerConnection mbsc = ((RemoteDeploymentManager) mgr).getJMXConnector().getMBeanServerConnection();
                                try {
                                    FrameworkMBean frameworkMBean = getFrameworkMBean(mbsc);
                                    frameworkMBean.startBundle(bundleId);
                                    consoleReader.printString(DeployUtils.reformat("Started bundle: " + bundleId, 4, 72));
                                } catch (Exception e) {
                                    throw new DeploymentException("Unable to start bundle.", e);
                                }
                               
View Full Code Here

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

   public void startBundle(BundleHandle handle) throws BundleException
   {
      try
      {
         FrameworkMBean frameworkMBean = jmxSupport.getFrameworkMBean();
         frameworkMBean.startBundle(handle.getBundleId());
      }
      catch (IOException ex)
      {
         throw new BundleException("Cannot start bundle: " + handle, ex);
      }
View Full Code Here

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

   public void startBundle(BundleHandle handle) throws BundleException
   {
      try
      {
         FrameworkMBean frameworkMBean = jmxSupport.getFrameworkMBean();
         frameworkMBean.startBundle(handle.getBundleId());
      }
      catch (IOException ex)
      {
         throw new BundleException("Cannot start bundle: " + handle, ex);
      }
View Full Code Here

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

   public void startBundle(BundleHandle handle) throws BundleException
   {
      try
      {
         FrameworkMBean frameworkMBean = jmxSupport.getFrameworkMBean();
         frameworkMBean.startBundle(handle.getBundleId());
      }
      catch (IOException ex)
      {
         throw new BundleException("Cannot start bundle: " + handle, ex);
      }
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.