Examples of Deployment


Examples of org.jboss.deployers.client.spi.Deployment

      String deploymentName = contextMap.get(url);
      if (deploymentName != null)
      {
         try
         {
            Deployment deployment = delegate.getDeployment(deploymentName);
            delegate.addDeployment(deployment);
            delegate.process();
            delegate.checkComplete(deployment);
         }
         catch (org.jboss.deployers.spi.DeploymentException e)
View Full Code Here

Examples of org.jboss.deployers.client.spi.Deployment

   {
      String name = contextMap.get(url);
      if (name == null)
         return null;

      Deployment dc = delegate.getDeployment(name);
      log.debug("getDeployment, url="+url+", dc="+dc);
      return dc;
   }
View Full Code Here

Examples of org.jboss.deployers.client.spi.Deployment

      if (scriptName == null)
         throw new IllegalArgumentException("Null script name.");

      BeanShellScript script = createBeanShellScript(bshScript, scriptName);
      Deployment deployment = new AbstractDeployment(scriptName);
      MutableAttachments mutableAttachments = ((MutableAttachments)deployment.getPredeterminedManagedObjects());
      mutableAttachments.addAttachment(BeanShellScript.class, script);

      deployer.addDeployment(deployment);
      deployer.process();

      return deployment.getName();
   }
View Full Code Here

Examples of org.jboss.deployers.client.spi.Deployment

      return suite(SmokeTestCase.class);
   }

   protected void testDeployment(VirtualFile app) throws Exception
   {
      Deployment deployment = createVFSDeployment(app);

      DeployerClient mainDeployer = getDeployerClient();
      mainDeployer.addDeployment(deployment);
      mainDeployer.process();
      try
      {
         DeploymentUnit du = getMainDeployerStructure().getDeploymentUnit(deployment.getName());
         ControllerContext context = du.getAttachment(ControllerContext.class);
         assertNotNull(context);
         assertEquals(ControllerState.INSTALLED, context.getState());

         // There should be no WB bootstrap bean
View Full Code Here

Examples of org.jboss.deployers.client.spi.Deployment

      File path = new File(deployURL.getFile());
      String archive = path.getName();
      File deployFile = new File(uploadDir, archive);

      VirtualFile root = VFS.getChild(deployFile.toURI());
      Deployment deployment = mainDeployer.getDeployment(getDeploymentName(root));

      /* TODO: that is a hack */
      if (deployment == null)
      {
         deployment = deploymentFactory.createVFSDeployment(getDeploymentName(root), root);
         mainDeployer.addDeployment(deployment);
         mainDeployer.process();
         moduleID.setRunning(true);
         moduleID.clearChildModuleIDs();
         // Repopulate the child modules
         DeploymentContext context = mainDeployer.getDeploymentContext(deployment.getName());
         fillChildrenTargetModuleID(moduleID, context);
      }

      // hack(moduleID, context, "start");
   }
View Full Code Here

Examples of org.jboss.deployers.client.spi.Deployment

      File deployFile = new File(uploadDir, archive);
      if (deployFile.exists() == false)
         throw new IOException("deployURL(" + url + ") has no local archive");

      VirtualFile root = VFS.getChild(deployFile.toURI());
      Deployment deployment = deploymentFactory.createVFSDeployment(getDeploymentName(root), root);
      mainDeployer.addDeployment(deployment);
      DeploymentContext context = null;
      try
      {
         mainDeployer.process();
         context = mainDeployer.getDeploymentContext(deployment.getName());
         mainDeployer.checkComplete(deployment);
      }
      catch (Exception e)
      {
         /* destroy the context */
 
View Full Code Here

Examples of org.jboss.deployers.client.spi.Deployment

      }
   }

   protected void testIsolation(VirtualFile fst, String inFst, VirtualFile snd, String inSnd) throws Exception
   {
      Deployment deployment1 = createVFSDeployment(fst);
      Deployment deployment2 = createVFSDeployment(snd);

      DeployerClient mainDeployer = getDeployerClient();
      mainDeployer.addDeployment(deployment1);
      mainDeployer.addDeployment(deployment2);
      mainDeployer.process();
      try
      {
         DeploymentUnit du1 = getMainDeployerStructure().getDeploymentUnit(deployment1.getName());
         assertLoadClass(inFst, du1.getClassLoader());
         assertClassNotFound(inSnd, du1);

         DeploymentUnit du2 = getMainDeployerStructure().getDeploymentUnit(deployment2.getName());
         assertLoadClass(inSnd, du2.getClassLoader());
         assertClassNotFound(inFst, du2);
      }
      finally
      {
View Full Code Here

Examples of org.jboss.gwt.circuit.sample.wmm.actions.Deployment

                        }
                    }
                }
                else if (action instanceof DeployAction) {
                    DeployAction deployAction = (DeployAction) action;
                    Deployment deployment = deployAction.getDeployment();
                    deployments.put(deployment.getName(), deployment.getServer());
                } else if (action instanceof UndeployAction) {
                    UndeployAction undeployAction = (UndeployAction) action;
                    Deployment deployment = undeployAction.getDeployment();
                    deployments.remove(deployment.getName(), deployment.getServer());
                }
                channel.ack();
            }

            @Override
View Full Code Here

Examples of org.jboss.osgi.deployment.deployer.Deployment

        return bundleManager.registerModule(serviceTarget, module, metadata);
    }

    private ServiceName installBundleFromURL(BundleManagerService bundleManager, URL moduleURL, Integer startLevel) throws Exception {
        BundleInfo info = BundleInfo.createBundleInfo(moduleURL);
        Deployment dep = DeploymentFactory.createDeployment(info);
        if (startLevel != null) {
            dep.setStartLevel(startLevel.intValue());
        }
        return bundleManager.installBundle(serviceTarget, dep);
    }
View Full Code Here

Examples of org.jboss.weld.bootstrap.spi.Deployment

   {
      // ejb1.jar
      JavaArchive ejbJar1 = createEjbJar("ejb1.jar", true, PlainJavaBean.class);
      DeploymentUnit unit = assertDeploy(ejbJar1);
      Class<?> plainJavaBeanClass = getClass(PlainJavaBean.class, unit);
      Deployment deployment1 =  initializeDeploymentBean(unit);
      // ejb2.jar
      JavaArchive ejbJar2 = createEjbJar("ejb2.jar", false,  MySLSBean.class, BusinessInterface.class);
      unit = assertDeploy(ejbJar2);
      ClassLoader classLoader2 = unit.getClassLoader();
      Class<?> mySLSBeanClass = classLoader2.loadClass(MySLSBean.class.getName());
      Class<?> businessInterface = classLoader2.loadClass(BusinessInterface.class.getName());
     
      BeanDeploymentArchive bda1 = deployment1.getBeanDeploymentArchives().iterator().next();
      assertSame(bda1, deployment1.loadBeanDeploymentArchive(plainJavaBeanClass));
      // creation of bda2 on demand
      BeanDeploymentArchive bda2 = deployment1.loadBeanDeploymentArchive(mySLSBeanClass);
      assertBDAId(bda2, "ejb2.jar");
      assertExpectedClasses(bda2, MySLSBean.class);
      assertNoBeansXml(bda2);
      // double invocation
      assertSame(bda2, deployment1.loadBeanDeploymentArchive(mySLSBeanClass));
      assertBDAId(bda2, "ejb2.jar");
      assertExpectedClasses(bda2, MySLSBean.class);
      assertNoBeansXml(bda2);
      // inclusion of BusinessInterface
      assertSame(bda2, deployment1.loadBeanDeploymentArchive(businessInterface));
      assertBDAId(bda2, "ejb2.jar");
      assertExpectedClasses(bda2, MySLSBean.class, BusinessInterface.class);
      assertNoBeansXml(bda2);
      // double invocation
      assertSame(bda2, deployment1.loadBeanDeploymentArchive(businessInterface));
      assertBDAId(bda2, "ejb2.jar");
      assertExpectedClasses(bda2, MySLSBean.class, BusinessInterface.class);
      assertNoBeansXml(bda2);
   }
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.