Examples of deploy()


Examples of org.glassfish.internal.deployment.Deployment.deploy()

                        logger, params, report).source(app).build();
                dc.addTransientAppMetaData(DatabaseConstants.JTA_DATASOURCE_JNDI_NAME_OVERRIDE, resourceName);
                Properties appProps = dc.getAppProps();
                appProps.setProperty(ServerTags.OBJECT_TYPE, DeploymentProperties.SYSTEM_ALL);

                deployment.deploy(dc);

                if (report.getActionExitCode() != ActionReport.ExitCode.SUCCESS) {
                    logger.log (Level.WARNING, "Cannot deploy or load EJBTimerService: ",
                            report.getFailureCause());
                } else {
View Full Code Here

Examples of org.glassfish.webservices.deployment.WebServicesDeploymentMBean.deploy()

            doWebServicesDeployment(app,dc);
            Thread.currentThread().setContextClassLoader(oldCl);
            WebServicesContainer container = habitat.getService(WebServicesContainer.class);
            WebServicesDeploymentMBean bean = container.getDeploymentBean();
            WebServiceDeploymentNotifier notifier = getDeploymentNotifier();
            bean.deploy(wsDesc,notifier);
            return true;
        } catch (Exception ex) {
            RuntimeException re = new RuntimeException(ex.getMessage());
            re.initCause(ex);
            throw re;
View Full Code Here

Examples of org.hornetq.integration.bootstrap.HornetQBootstrapServer.deploy()

   public void testDeploy() throws Throwable
   {
      HornetQBootstrapServer bootstrap = new HornetQBootstrapServer(new String[] {});
      bootstrap.run();
      Assert.assertFalse(DummyBean.started);
      KernelDeployment kernelDeployment = bootstrap.deploy(HornetQBootstrapServerTest.beans1);
      Assert.assertTrue(DummyBean.started);
      bootstrap.undeploy(kernelDeployment);
      Assert.assertFalse(DummyBean.started);
      bootstrap.shutDown();
   }
View Full Code Here

Examples of org.hornetq.jms.server.impl.JMSServerDeployer.deploy()

      "<queue name=\"" + htmlEncodedName + "\">" + "<entry name=\"" + jndiName + "\"/>" + "</queue>";

      Element rootNode = org.hornetq.utils.XMLUtil.stringToElement(xml);

      deployer.deploy(rootNode);

      Queue queue = (Queue)context.lookup(jndiName);
      Assert.assertNotNull(queue);
      Assert.assertEquals(queueName, queue.getQueueName());
   }
View Full Code Here

Examples of org.jboss.arquillian.spi.DeployableContainer.deploy()

     
      Archive<?> deployment = context.get(Archive.class);
      Validate.stateNotNull(deployment, "No " + Archive.class.getName() + " found in context");
     
      context.fire(new BeforeDeploy());
      ContainerMethodExecutor executor = container.deploy(context, deployment);
      context.add(ContainerMethodExecutor.class, executor);
      context.fire(new AfterDeploy());
   }
}
View Full Code Here

Examples of org.jboss.as.controller.client.helpers.standalone.ServerDeploymentHelper.deploy()

        runtimeName = wrapper.getRuntimeName();
        NamedResourceAssociation.putResource(wrapper.getRuntimeName(), resource);
        try {
            String deploymentName = wrapper.getDeploymentName();
            serverDeployer.deploy(deploymentName, wrapper.getInputStream());
        } finally {
            NamedResourceAssociation.removeResource(runtimeName);
        }

        // Install the resource as module if it has not happend already
View Full Code Here

Examples of org.jboss.as.demos.DeploymentUtils.deploy()

    public static void main(String[] args) throws Exception {
        DeploymentUtils deploymentUtils = null;
        try {
            deploymentUtils = new DeploymentUtils("sar-example.sar", ConfigService.class.getPackage());

            deploymentUtils.deploy();
            ObjectName objectName = new ObjectName("jboss:name=test,type=config");

            MBeanServerConnection mbeanServer = deploymentUtils.getConnection();

            //A little sleep to give the logging done by the bean time to kick in
View Full Code Here

Examples of org.jboss.as.demos.DomainDeploymentUtils.deploy()

        try {

            utils = new DomainDeploymentUtils("rar-example.rar", HelloWorldConnection.class.getPackage(), true);
            utils.addDeployment("rar-mbean.sar", Test.class.getPackage(), true);

            utils.deploy();

            ObjectName objectName = new ObjectName("jboss:name=test,type=rar");

            MBeanServerConnection mbeanServer = utils.getServerOneConnection();
View Full Code Here

Examples of org.jboss.deployers.client.spi.DeployerClient.deploy()

      String name = "simple";
     
      Deployment deployment = createSimpleDeployment(name);
      MutableAttachments attachments = (MutableAttachments) deployment.getPredeterminedManagedObjects();
      attachments.addAttachment(DeploymentStage.class, DeploymentStages.DESCRIBE);
      main.deploy(deployment);

      DeploymentUnit unit = getDeploymentUnit(main, name);
     
      assertEquals(DeploymentStages.DESCRIBE, unit.getRequiredStage());
      assertEquals(DeploymentStages.DESCRIBE, main.getDeploymentStage(name));
View Full Code Here

Examples of org.jboss.deployers.client.spi.main.MainDeployer.deploy()

   public void testDeployShutdown() throws Throwable
   {
      MainDeployer main = (MainDeployer)getMainDeployer();

      Deployment context = createSimpleDeployment("shutdown");
      main.deploy(context);
      List<String> expected = new ArrayList<String>();
      expected.add(context.getName());
      assertEquals(expected, deployer.getDeployedUnits());

      main.shutdown();
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.