Package org.apache.geronimo.kernel.config

Examples of org.apache.geronimo.kernel.config.ConfigurationModuleType


        }

        ApplicationInfo applicationInfo = (ApplicationInfo) plan;

        EARContext earContext = null;
        ConfigurationModuleType applicationType = applicationInfo.getType();
        applicationInfo.getEnvironment().setConfigId(configId);
        try {
            try {
                targetConfigurationStore.createNewConfigurationDir(configId);
            } catch (ConfigurationAlreadyExistsException e) {
View Full Code Here


        assert plan != null;
        ApplicationInfo applicationInfo = (ApplicationInfo) plan;
        try {
            // Create the output ear context
            EARContext earContext = null;
            ConfigurationModuleType applicationType = applicationInfo.getType();
            try {
                earContext = new EARContext(outfile,
                        applicationInfo.getConfigId(),
                        applicationType,
                        applicationInfo.getParentId(),
View Full Code Here

    public DeploymentContext buildConfiguration(boolean inPlaceDeployment, Artifact configId, Object plan, JarFile earFile, Collection configurationStores, ArtifactResolver artifactResolver, ConfigurationStore targetConfigurationStore) throws IOException, DeploymentException {
        assert plan != null;
        ApplicationInfo applicationInfo = (ApplicationInfo) plan;

        EARContext earContext = null;
        ConfigurationModuleType applicationType = applicationInfo.getType();
        applicationInfo.getEnvironment().setConfigId(configId);
        File configurationDir;
        try {
            configurationDir = targetConfigurationStore.createNewConfigurationDir(configId);
        } catch (ConfigurationAlreadyExistsException e) {
View Full Code Here

            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";
View Full Code Here

        }
        for (int i = 0; i < results.length; i++) {
            AbstractName abstractName = PortletManager.getNameFor(request, realms[i]);
            String parent;
            Configuration parentConfig = configMgr.getConfiguration(abstractName.getArtifact());
            ConfigurationModuleType parentType = parentConfig.getModuleType();
            if(ConfigurationModuleType.SERVICE.equals(parentType)) {
                parent = null; // Server-wide
            } else {
                parent = abstractName.getArtifact().toString();
            }
View Full Code Here

        return applicationInfo;
    }

    private void addModulesToDefaultPlan(Application application, Set<Module<?, ?>> modules) {
        for (Module module : modules) {
            ConfigurationModuleType configurationModuleType = module.getType();
            org.apache.openejb.jee.Module newModule = new org.apache.openejb.jee.Module();
            if (configurationModuleType.equals(ConfigurationModuleType.WAR)) {
                WebModule webModule = (WebModule) module;
                Web web = new Web();
                web.setContextRoot(webModule.getContextRoot());
                web.setWebUri(webModule.getTargetPath());
                newModule.setWeb(web);
            } else if (configurationModuleType.equals(ConfigurationModuleType.EJB)) {
                newModule.setEjb(module.getTargetPath());
            } else if (configurationModuleType.equals(ConfigurationModuleType.RAR)) {
                newModule.setConnector(module.getTargetPath());
            } else if (configurationModuleType.equals(ConfigurationModuleType.CAR)) {
                newModule.setJava(module.getTargetPath());
            }
            application.getModule().add(newModule);
        }
    }
View Full Code Here

        }

        ApplicationInfo applicationInfo = (ApplicationInfo) plan;

        EARContext earContext = null;
        ConfigurationModuleType applicationType = applicationInfo.getType();
        applicationInfo.getEnvironment().setConfigId(configId);
        try {
            try {
                targetConfigurationStore.createNewConfigurationDir(configId);
            } catch (ConfigurationAlreadyExistsException e) {
View Full Code Here

        for (int i = 0; i < results.length; i++) {
            final GeronimoManagedBean managedBean = (GeronimoManagedBean) realms[i];
            AbstractName abstractName = PortletManager.getNameFor(request, realms[i]);
            String parent;
            Configuration parentConfig = configMgr.getConfiguration(abstractName.getArtifact());
            ConfigurationModuleType parentType = parentConfig.getModuleType();
            if(ConfigurationModuleType.SERVICE.equals(parentType)) {
                parent = null; // Server-wide
            } else {
                parent = abstractName.getArtifact().toString();
            }
View Full Code Here

    public DeploymentContext buildConfiguration(boolean inPlaceDeployment, Artifact configId, Object plan, JarFile earFile, Collection configurationStores, ArtifactResolver artifactResolver, ConfigurationStore targetConfigurationStore) throws IOException, DeploymentException {
        assert plan != null;
        ApplicationInfo applicationInfo = (ApplicationInfo) plan;

        EARContext earContext = null;
        ConfigurationModuleType applicationType = applicationInfo.getType();
        applicationInfo.getEnvironment().setConfigId(configId);
        File configurationDir;
        try {
            configurationDir = targetConfigurationStore.createNewConfigurationDir(configId);
        } catch (ConfigurationAlreadyExistsException e) {
View Full Code Here

        for (int i = 0; i < results.length; i++) {
            final GeronimoManagedBean managedBean = (GeronimoManagedBean) realms[i];
            AbstractName abstractName = PortletManager.getNameFor(request, realms[i]);
            String parent;
            Configuration parentConfig = configMgr.getConfiguration(abstractName.getArtifact());
            ConfigurationModuleType parentType = parentConfig.getModuleType();
            if(ConfigurationModuleType.SERVICE.equals(parentType)) {
                parent = null; // Server-wide
            } else {
                parent = abstractName.getArtifact().toString();
            }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.kernel.config.ConfigurationModuleType

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.