Examples of AppInfo


Examples of org.apache.openejb.assembler.classic.AppInfo

        final AppInfo appInfo = configureApplication(new AppModule(clientModule));
        return appInfo.clients.get(0);
    }

    public ConnectorInfo configureApplication(final ConnectorModule connectorModule) throws OpenEJBException {
        final AppInfo appInfo = configureApplication(new AppModule(connectorModule));
        return appInfo.connectors.get(0);
    }
View Full Code Here

Examples of org.apache.openejb.assembler.classic.AppInfo

        final AppInfo appInfo = configureApplication(new AppModule(connectorModule));
        return appInfo.connectors.get(0);
    }

    public WebAppInfo configureApplication(final WebModule webModule) throws OpenEJBException {
        final AppInfo appInfo = configureApplication(new AppModule(webModule));
        return appInfo.webApps.get(0);
    }
View Full Code Here

Examples of org.apache.openejb.assembler.classic.AppInfo

        appModule.setModuleId("rest");
        appModule.getWebModules().add(webModule);
        appModule.getEjbModules().add(new EjbModule(ejbJar));
        annotationDeployer.deploy(appModule);

        AppInfo appInfo = factory.configureApplication(appModule);
        final AppContext application = assembler.createApplication(appInfo);

        Context ctx = (Context) Proxy.newProxyInstance(Thread.currentThread().getContextClassLoader(), new Class<?>[]{Context.class}, new InvocationHandler() {
            @Override public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
                if (args.length == 1 && args[0].equals("SimpleEJBLocalBean")) {
View Full Code Here

Examples of org.apache.openejb.assembler.classic.AppInfo

        checkWebapp(destinationFilenameWithoutExtension);
      } else {
        check();
      }

      final AppInfo info = findAppInfo(new String[] { destination.getAbsolutePath(), destinationWithoutExtension });
            if (info == null) {
                throw new NullPointerException("appinfo not found");
            }

            final DeploymentExceptionManager dem = SystemInstance.get().getComponent(DeploymentExceptionManager.class);
View Full Code Here

Examples of org.apache.openejb.assembler.classic.AppInfo

  private AppInfo findAppInfo(String... paths) {
    Collection<AppInfo> deployedApps = getDeployedApps();

    Iterator<AppInfo> iterator = deployedApps.iterator();
    while (iterator.hasNext()) {
      AppInfo appInfo = iterator.next();
      for (String path : paths) {
        if (appInfo.path.equals(path)) {
          return appInfo;
        }
      }
View Full Code Here

Examples of org.apache.openejb.assembler.classic.AppInfo

    }
  }

  public void undeploy(String moduleId) throws UndeployException, NoSuchApplicationException {
    try {
      AppInfo appInfo = findAppInfo(moduleId);
      if (appInfo !=  null) {
        webappBuilder.undeployWebApps(appInfo);
      }
     
      assembler.destroyApplication(moduleId);
View Full Code Here

Examples of org.apache.openejb.assembler.classic.AppInfo

                config.init(SystemInstance.get().getProperties());

                Assembler assembler = new Assembler();
                assembler.buildContainerSystem(config.getOpenEjbConfiguration());

                final AppInfo appInfo = config.configureApplication(appModule);

                final AppContext appContext = assembler.createApplication(appInfo);

                try {
                    final ContainerSystem containerSystem = SystemInstance.get().getComponent(ContainerSystem.class);
View Full Code Here

Examples of org.apache.openejb.assembler.classic.AppInfo

                }

                appModule.getEjbModules().add(new EjbModule(ejbJar, openejbJar));


                final AppInfo appInfo;
                try {

                    appInfo = configurationFactory.configureApplication(appModule);

                } catch (ValidationFailedException e) {
View Full Code Here

Examples of org.apache.openejb.assembler.classic.AppInfo

                LOGGER.warning("can't create " + file.getParent());
            }

            archive.as(ZipExporter.class).exportTo(file, true);

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

            if (options.get("tomee.appinfo.output", false)) {
                Info.marshal(appInfo);
            }
View Full Code Here

Examples of org.apache.openejb.assembler.classic.AppInfo

                    LOGGER.info("looking bundle {0} in {1}", bundle.getBundleId(), bundleDump);
                    final AppModule appModule = new OSGiDeploymentLoader(bundle).load(bundleDump);
                    LOGGER.info("deploying bundle #" + bundle.getBundleId() + " as an EJBModule");

                    final ConfigurationFactory configurationFactory = new ConfigurationFactory();
                    final AppInfo appInfo = configurationFactory.configureApplication(appModule);
                    appInfo.appId = "bundle_" + bundle.getBundleId();

                    final Assembler assembler = SystemInstance.get().getComponent(Assembler.class);
                    final AppContext appContext = assembler.createApplication(appInfo, osgiCl);
                    LOGGER.info("Application deployed: " + appInfo.path);
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.