Package org.apache.geronimo.j2ee.deployment

Examples of org.apache.geronimo.j2ee.deployment.ApplicationInfo


            mbe.createModule(module, plan, moduleFile, targetPath, specDDUrl, clientEnvironment, null, earName, naming, idBuilder);
        }
        if (standAlone) {
            Map<JndiKey, Map<String, Object>> appJndiContext = Module.share(Module.APP, module.getJndiContext());

            ApplicationInfo appInfo = new ApplicationInfo(ConfigurationModuleType.CAR,
                    serverEnvironment,
                    earName,
                    name,
                    null,
                    null,
                    null,
                    null,
                    appJndiContext);
            appInfo.getModules().add(module);
            return appInfo;
        } else {
            return module;
        }
    }
View Full Code Here


            throws PortletException, IOException {
        FileItem fileItem = (FileItem) getUploadFiles().get(MODULE_URI_PARAMETER);
        String fileName = fileItem.getName();
        if (fileName != null && fileName.length() > 0) {
            File uploadedFile = uploadFile(fileItem);
            ApplicationInfo applicationInfo = JSR88_Util.createApplicationInfo(request, uploadedFile);
            ConfigurationModuleType applicationType = applicationInfo.getType();
            if (ConfigurationModuleType.WAR == applicationType) {
                WARConfigData data = setNewWARSessionData(request);
                data.setUploadedWarUri(uploadedFile.toURI().toString());
                data.parseWeb((WebModule) (applicationInfo.getModules().toArray()[0]));
                return ENVIRONMENT_MODE + "-before";
            }
            if (ConfigurationModuleType.EAR == applicationType) {
                EARConfigData earConfigData = setNewEARSessionData(request);
                earConfigData.parseEAR(applicationInfo);
                return EAR_MODE + "-before";
            }
            if (ConfigurationModuleType.EJB == applicationType) {
                EjbConfigData ejbJarConfigData = setNewEjbJarSessionData(request);
                ejbJarConfigData.parseEjbJar((EjbModule) (applicationInfo.getModules().toArray()[0]));
                return EJB_MODE + "-before";
            }
        }
        portlet.addErrorMessage(request, portlet.getLocalizedString(request, "errorMsg01"));
        return getMode();
View Full Code Here

        }
        return classLoaders;
    }*/

    public static ApplicationInfo createApplicationInfo(PortletRequest actionRequest, File moduleFile) {
        ApplicationInfo applicationInfo = null;
        EARConfigBuilder.createPlanMode.set(Boolean.TRUE);
        try {
            DeploymentFactoryManager dfm = DeploymentFactoryManager.getInstance();
            DeploymentManager mgr = dfm.getDeploymentManager("deployer:geronimo:inVM", null, null);
            if (mgr instanceof JMXDeploymentManager) {
View Full Code Here

        try {
            FileItem fileItem = (FileItem) getUploadFiles().get(MODULE_URI_PARAMETER);
            String fileName = fileItem.getName();
            if (fileName != null && fileName.length() > 0) {
                File uploadedFile = uploadFile(fileItem);
                ApplicationInfo applicationInfo = JSR88_Util.createApplicationInfo(request, uploadedFile);
                ConfigurationModuleType applicationType = applicationInfo.getType();
                if (ConfigurationModuleType.WAR == applicationType) {
                    WARConfigData data = setNewWARSessionData(request);
                    data.setUploadedWarUri(uploadedFile.toURI().toString());
                    data.parseWeb((WebModule) (applicationInfo.getModules().toArray()[0]));
                    return ENVIRONMENT_MODE + "-before";
                }
                if (ConfigurationModuleType.EAR == applicationType) {
                    EARConfigData earConfigData = setNewEARSessionData(request);
                    earConfigData.parseEAR(applicationInfo);
                    return EAR_MODE + "-before";
                }
                if (ConfigurationModuleType.EJB == applicationType) {
                    EjbConfigData ejbJarConfigData = setNewEjbJarSessionData(request);
                    ejbJarConfigData.parseEjbJar((EjbModule) (applicationInfo.getModules().toArray()[0]));
                    return EJB_MODE + "-before";
                }
            }
        } catch(Throwable e) {
            errorMsg = getRootCause(e).getMessage();
View Full Code Here

        }
        return classLoaders;
    }*/

    public static ApplicationInfo createApplicationInfo(PortletRequest actionRequest, File moduleFile) {
        ApplicationInfo applicationInfo = null;
        EARConfigBuilder.createPlanMode.set(Boolean.TRUE);
        try {
            DeploymentFactoryManager dfm = DeploymentFactoryManager.getInstance();
            DeploymentManager mgr = dfm.getDeploymentManager("deployer:geronimo:inVM", null, null);
            if (mgr instanceof JMXDeploymentManager) {
View Full Code Here

            mbe.createModule(module, plan, moduleFile, targetPath, specDDUrl, clientEnvironment, null, earName, naming, idBuilder);
        }
        if (standAlone) {
            Map<JndiKey, Map<String, Object>> appJndiContext = Module.share(Module.APP, module.getJndiContext());

            ApplicationInfo appInfo = new ApplicationInfo(ConfigurationModuleType.CAR,
                    serverEnvironment,
                    earName,
                    name,
                    null,
                    null,
                    null,
                    null,
                    appJndiContext);
            appInfo.getModules().add(module);
            return appInfo;
        } else {
            return module;
        }
    }
View Full Code Here

        AppClientModule module = new AppClientModule(standAlone, moduleName, name, clientBaseName, serverEnvironment, clientEnvironment, moduleFile, targetPath, appClient, mainClass, gerAppClient, specDD, resourceModules, annotatedApplicationClient);
        for (ModuleBuilderExtension mbe : moduleBuilderExtensions) {
            mbe.createModule(module, plan, moduleFile, targetPath, specDDUrl, clientEnvironment, null, earName, naming, idBuilder);
        }
        if (standAlone) {
            ApplicationInfo appInfo = new ApplicationInfo(ConfigurationModuleType.CAR,
                    serverEnvironment,
                    earName,
                    name,
                    null,
                    null,
View Full Code Here

TOP

Related Classes of org.apache.geronimo.j2ee.deployment.ApplicationInfo

Copyright © 2018 www.massapicom. 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.