Package org.apache.openejb.assembler

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


                if (offline) {
                    System.out.println(messages.format("cmd.deploy.offline", path, apps.getAbsolutePath()));
                    continue;
                }

                AppInfo appInfo = deployer.deploy(file.getAbsolutePath());

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

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

                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.path));

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

      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

                final Properties prop = new Properties();
                prop.putAll(systemVariables);
                prop.put(DeployerEjb.OPENEJB_USE_BINARIES, "true");
                prop.put(DeployerEjb.OPENEJB_PATH_BINARIES, new File(path).getName());
                prop.put(DeployerEjb.OPENEJB_VALUE_BINARIES, archive);
                deployer.deploy(path, prop);
            } catch (OpenEJBException e) {
                throw new TomEEException(e.getMessage(), e);
            }
        } else {
            try {
View Full Code Here

                throw new TomEEException(e.getMessage(), e);
            }
        } else {
            try {
                if (systemVariables.isEmpty()) {
                    deployer.deploy(path);
                } else {
                    final Properties prop = new Properties();
                    prop.putAll(systemVariables);
                    deployer.deploy(path, prop);
                }
View Full Code Here

                if (systemVariables.isEmpty()) {
                    deployer.deploy(path);
                } else {
                    final Properties prop = new Properties();
                    prop.putAll(systemVariables);
                    deployer.deploy(path, prop);
                }
            } catch (OpenEJBException e) {
                throw new TomEEException(e.getMessage(), e);
            }
        }
View Full Code Here

                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

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

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

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

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

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

                if (line.hasOption("quiet")) {
                    continue;
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.