Examples of AppInfo


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

        AppModule app = new AppModule(this.getClass().getClassLoader(), unitName + "-app");
        app.getPersistenceModules().add(new PersistenceModule("root", new Persistence(unit)));

        // Create app

        AppInfo appInfo = config.configureApplication(app);
        assembler.createApplication(appInfo);

        // Check results

        return appInfo.persistenceUnits.get(0);
View Full Code Here

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

        for (String pathname : declaredApps) {
            try {
                File jarFile = new File(pathname);

                AppInfo appInfo = configureApplication(jarFile);

                sys.containerSystem.applications.add(appInfo);
            } catch (OpenEJBException alreadyHandled) {
            }
        }

        if (getBooleanOption(DEPLOYMENTS_CLASSPATH_PROPERTY, true)) {
            List<String> classpathApps = new ArrayList<String>();

            ClassLoader classLoader = Thread.currentThread().getContextClassLoader();

            DeploymentsResolver.loadFromClasspath(base, classpathApps, classLoader);

            ArrayList<File> jarFiles = new ArrayList<File>();
            for (String path : classpathApps) {
                if (declaredApps.contains(path)) continue;

                jarFiles.add(new File(path));
            }

            try {
                if (getBooleanOption(CLASSPATH_AS_EAR, true)) {

                    AppInfo appInfo = configureApplication(classLoader, "classpath.ear", jarFiles);

                    sys.containerSystem.applications.add(appInfo);

                } else for (File jarFile : jarFiles) {

                    AppInfo appInfo = configureApplication(jarFile);

                    sys.containerSystem.applications.add(appInfo);
                }

View Full Code Here

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

    }

    public AppInfo configureApplication(File jarFile) throws OpenEJBException {
        logger.debug("Beginning load: " + jarFile.getAbsolutePath());

        AppInfo appInfo;
        try {
            AppModule appModule = deploymentLoader.load(jarFile);
            appInfo = configureApplication(appModule);
        } catch (ValidationFailedException e) {
            logger.warning("configureApplication.loadFailed", jarFile.getAbsolutePath(), e.getMessage()); // DO not include the stacktrace in the message
View Full Code Here

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

                logger.warning("configureApplication.loadFailed", e, jarFile.getAbsolutePath(), e.getMessage());
                throw e;
            }
        }

        AppInfo appInfo;
        try {
            appInfo = configureApplication(collection);
        } catch (ValidationFailedException e) {
            logger.warning("configureApplication.loadFailed", id, e.getMessage()); // DO not include the stacktrace in the message
            throw e;
View Full Code Here

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

    }

    public EjbJarInfo configureApplication(EjbModule ejbModule) throws OpenEJBException {
        AppModule appModule = new AppModule(ejbModule.getClassLoader(), ejbModule.getJarLocation());
        appModule.getEjbModules().add(ejbModule);
        AppInfo appInfo = configureApplication(appModule);
        return appInfo.ejbJars.get(0);
    }
View Full Code Here

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

    }

    public ClientInfo configureApplication(ClientModule clientModule) throws OpenEJBException {
        AppModule appModule = new AppModule(clientModule.getClassLoader(), clientModule.getJarLocation());
        appModule.getClientModules().add(clientModule);
        AppInfo appInfo = configureApplication(appModule);
        return appInfo.clients.get(0);
    }
View Full Code Here

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

    }

    public ConnectorInfo configureApplication(ConnectorModule connectorModule) throws OpenEJBException {
        AppModule appModule = new AppModule(connectorModule.getClassLoader(), connectorModule.getJarLocation());
        appModule.getResourceModules().add(connectorModule);
        AppInfo appInfo = configureApplication(appModule);
        return appInfo.connectors.get(0);
    }
View Full Code Here

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

    }

    public WebAppInfo configureApplication(WebModule webModule) throws OpenEJBException {
        AppModule appModule = new AppModule(webModule.getClassLoader(), webModule.getJarLocation());
        appModule.getWebModules().add(webModule);
        AppInfo appInfo = configureApplication(appModule);
        return appInfo.webApps.get(0);
    }
View Full Code Here

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

        if (contextInfo == null) {
            AppModule appModule = loadApplication(standardContext);
            if (appModule != null) {
                try {
                    contextInfo = addContextInfo(standardContext.getHostname(), standardContext);
                    AppInfo appInfo = configurationFactory.configureApplication(appModule);
                    contextInfo.appInfo = appInfo;

                    assembler.createApplication(contextInfo.appInfo, standardContext.getLoader().getClassLoader());
                    // todo add watched resources to context
                } catch (Exception e) {
View Full Code Here

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

                    continue;
                }
                // ignore already deployed apps
                if (isDeployed(file, standardHost)) continue;

                AppInfo appInfo = null;
                try {
                    file = file.getCanonicalFile().getAbsoluteFile();

                    AppModule appModule = deploymentLoader.load(file);
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.