Examples of deploy()


Examples of org.apache.openejb.Container.deploy()

            // now that everything is configured, deploy to the container
            if (start) {
                for (DeploymentInfo deployment : allDeployments) {
                    try {
                        Container container = deployment.getContainer();
                        container.deploy(deployment);
                        logger.info("createApplication.createdEjb", deployment.getDeploymentID(), deployment.getEjbName(), container.getContainerID());
                    } catch (Throwable t) {
                        throw new OpenEJBException("Error deploying '"+deployment.getEjbName()+"'.  Exception: "+t.getClass()+": "+t.getMessage(), t);
                    }
                }
View Full Code Here

Examples of org.apache.openejb.assembler.Deployer.deploy()

                try {
                    location = destFile.getCanonicalPath();
                } catch (IOException e) {
                    throw new OpenEJBException(messages.format("cmd.deploy.fileNotFound", path));
                }
                AppInfo appInfo = deployer.deploy(location);

                System.out.println(messages.format("cmd.deploy.successful", path, appInfo.jarPath));

                if (line.hasOption("quiet")) {
                    continue;
View Full Code Here

Examples of org.apache.openejb.assembler.DeployerEjb.deploy()

      ResourceInfo serviceInfo = factory.configureService(resource, ResourceInfo.class);
      assembler.createResource(serviceInfo);
    }

    Deployer deployer = new DeployerEjb();
    this.appInfo = deployer.deploy(url, properties);
  }

  public void undeploy() throws NoSuchApplicationException, UndeployException {
    Assembler assembler = SystemInstance.get().getComponent(Assembler.class);
    assembler.destroyApplication(this.appInfo.jarPath);
View Full Code Here

Examples of org.apache.openejb.config.AnnotationDeployer.deploy()

        }

        // process the annotations
        try {
            AnnotationDeployer annotationDeployer = new AnnotationDeployer();
            annotationDeployer.deploy(webModule);
        } catch (OpenEJBException e) {
            logger.error("Unable to process annotation in " + standardContext.getPath() + ": Exception: " + e.getMessage(), e);
        }

        // remove all jndi entries where there is a configured Tomcat resource or resource-link
View Full Code Here

Examples of org.apache.openejb.config.CmpJpaConversion.deploy()

            JAXBElement<?> element = (JAXBElement<?>) JaxbOpenejbJar2.unmarshal(OpenejbJarType.class, openEjbJarSrc.getByteStream());
            OpenejbJarType openejbJarType = (OpenejbJarType) element.getValue();
            ejbModule.getAltDDs().put("openejb-jar.xml", openejbJarType); //$NON-NLS-1$

            CmpJpaConversion cmpJpaConversion = new CmpJpaConversion();
            cmpJpaConversion.deploy(appModule);

            OpenEjb2Conversion openEjb2Conversion = new OpenEjb2Conversion();
            openEjb2Conversion.deploy(appModule);
      }
View Full Code Here

Examples of org.apache.openejb.config.InitEjbDeployments.deploy()

          ejbModule.setClassLoader(classLoader);
          appModule.getEjbModules().add(ejbModule);

      if (openEjbJarSrc != null) {
            InitEjbDeployments initEjbDeployments = new InitEjbDeployments();
            initEjbDeployments.deploy(ejbModule);

            JAXBElement<?> element = (JAXBElement<?>) JaxbOpenejbJar2.unmarshal(OpenejbJarType.class, openEjbJarSrc.getByteStream());
            OpenejbJarType openejbJarType = (OpenejbJarType) element.getValue();
            ejbModule.getAltDDs().put("openejb-jar.xml", openejbJarType); //$NON-NLS-1$
View Full Code Here

Examples of org.apache.openejb.config.OpenEjb2Conversion.deploy()

            CmpJpaConversion cmpJpaConversion = new CmpJpaConversion();
            cmpJpaConversion.deploy(appModule);

            OpenEjb2Conversion openEjb2Conversion = new OpenEjb2Conversion();
            openEjb2Conversion.deploy(appModule);
      }

      return appModule;
    } catch (JAXBException e) {
      throw new ConversionException(Messages.getString("org.apache.openejb.helper.annotation.conversionExceptionMsg.1"), e); //$NON-NLS-1$
View Full Code Here

Examples of org.apache.openejb.server.hessian.HessianRegistry.deploy()

            server.createSkeleton(bm.getReference(deployment.bean, deployment.itf, null), deployment.itf);

            final String name = getName(deployment.path, deployment.itf);
            final String appName = findAppName(bm);
            try {
                LOGGER.info("Hessian(url=" + registry.deploy(deployment.itf.getClassLoader(), server,
                    service.getVirtualHost(), appName,
                    service.getAuthMethod(), service.getTransportGuarantee(),
                    service.getRealmName(), name) + ", interface=" + name + ")");
                deployed.add(new DeployedEndpoint(appName, name));
            } catch (final URISyntaxException e) {
View Full Code Here

Examples of org.apache.servicemix.bpe.BPEDeployer.deploy()

        BPEComponent bpe = new BPEComponent();
        ((BPELifeCycle) bpe.getLifeCycle()).doInit();
    BPEDeployer deployer = new BPEDeployer(bpe);
    assertTrue(deployer.canDeploy("loanbroker", path.getAbsolutePath()));
   
    ServiceUnit su = deployer.deploy("loanbroker", path.getAbsolutePath());
    assertNotNull(su);
  }
 
}
View Full Code Here

Examples of org.apache.servicemix.jbi.container.InstallComponent.deploy()

        InstallComponent ic = new InstallComponent();
        ic.setGroupId("org.apache.servicemix");
        ic.setArtifactId("servicemix-quartz");
        ic.setVersion("3.2");
        ic.afterPropertiesSet();
        ic.deploy(container);

        URL url = getClass().getResource("su2-src/servicemix.xml");
        File path = new File(new URI(url.toString()));
        path = path.getParentFile();
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.