Package com.sun.appserv.management.config

Examples of com.sun.appserv.management.config.WebModuleConfig


             String appName = (String) handlerCtx.getInputValue("appName");
             Properties deploymentProps = new Properties();
             String appType = AMXUtil.getAppType(appName);
             //If we are redeploying a web app, we want to preserve context root.
             if (appType.equals(WebModuleConfig.J2EE_TYPE)){
                WebModuleConfig webModule = AMXUtil.getDomainConfig().getWebModuleConfigMap().get(appName);
                deploymentProps.setProperty(DeploymentProperties.CONTEXT_ROOT, webModule.getContextRoot());
                deploymentProps.setProperty(DeploymentProperties.AVAILABILITY_ENABLED, (webModule.getAvailabilityEnabled()) ? "true" : "false");
             }

             if (appType.equals(J2EEApplicationConfig.J2EE_TYPE)){
                 J2EEApplicationConfig j2eeApp = AMXUtil.getDomainConfig().getJ2EEApplicationConfigMap().get(appName);
                 deploymentProps.setProperty(DeploymentProperties.AVAILABILITY_ENABLED, (j2eeApp.getAvailabilityEnabled())? "true" : "false");
View Full Code Here


            J2EEApplicationConfig appConfig
                =  AMXUtil.getDomainConfig().getJ2EEApplicationConfigMap().get(appName);
            wsConfig = appConfig.createWebServiceEndpointConfig(fullQualName, null);
        } else {
            if (type.equals(WebServiceEndpointInfo.SERVLET_IMPL)) {
                WebModuleConfig webConfig
                    = AMXUtil.getDomainConfig().getWebModuleConfigMap().get(appName);
                wsConfig = webConfig.createWebServiceEndpointConfig(fullQualName, null);
            } else {
                EJBModuleConfig ejbConfig
                    = AMXUtil.getDomainConfig().getEJBModuleConfigMap().get(appName);
                wsConfig = ejbConfig.createWebServiceEndpointConfig(fullQualName, null);
            }
View Full Code Here

            J2EEApplicationConfig appConfig
                =  AMXUtil.getDomainConfig().getJ2EEApplicationConfigMap().get(appName);
            wsConfig = appConfig.createWebServiceEndpointConfig(fullQualName, null);
        } else {
            if (type.equals(WebServiceEndpointInfo.SERVLET_IMPL)) {
                WebModuleConfig webConfig
                    = AMXUtil.getDomainConfig().getWebModuleConfigMap().get(appName);
                wsConfig = webConfig.createWebServiceEndpointConfig(fullQualName, null);
            } else {
                EJBModuleConfig ejbConfig
                    = AMXUtil.getDomainConfig().getEJBModuleConfigMap().get(appName);
                wsConfig = ejbConfig.createWebServiceEndpointConfig(fullQualName, null);
            }
View Full Code Here

            J2EEApplicationConfig appConfig
                =  AMXUtil.getDomainConfig().getJ2EEApplicationConfigMap().get(appName);
            map = appConfig.getWebServiceEndpointConfigMap();
        } else {
            if (type.equals(WebServiceEndpointInfo.SERVLET_IMPL)) {
                WebModuleConfig webConfig
                    = AMXUtil.getDomainConfig().getWebModuleConfigMap().get(appName);
                // Need to check if this is a Extension Module
                // if so webConfig would be null
                if(webConfig != null) {
                    map = webConfig.getWebServiceEndpointConfigMap();
                } else {
                    // now check if this is an extension module
                    ExtensionModuleConfig extnConfig
                        = AMXUtil.getDomainConfig().getExtensionModuleConfigMap().get(appName);
                    map = extnConfig.getWebServiceEndpointConfigMap();
View Full Code Here

            J2EEApplicationConfig appConfig
                =  AMXUtil.getDomainConfig().getJ2EEApplicationConfigMap().get(appName);
            map = appConfig.getWebServiceEndpointConfigMap();
        } else {
            if (type.equals(WebServiceEndpointInfo.SERVLET_IMPL)) {
                WebModuleConfig webConfig
                    = AMXUtil.getDomainConfig().getWebModuleConfigMap().get(appName);
                map = webConfig.getWebServiceEndpointConfigMap();
            } else {
                EJBModuleConfig ejbConfig
                    = AMXUtil.getDomainConfig().getEJBModuleConfigMap().get(appName);
                map = ejbConfig.getWebServiceEndpointConfigMap();
            }
View Full Code Here

                    } else {
                        return wsEpConfig;
                    }
                }
            } else if (modType.equals(WebServiceEndpointInfo.SERVLET_IMPL) ) {
                WebModuleConfig webModuleConfig = getWebModuleConfigMBean(mbsc, regName);
                if ( webModuleConfig == null){
                     throw new CommandException (
                                getLocalizedString("NoWebModuleFoundForWS",
                                                     new Object[] {regName}));
                }
                Map epMap = webModuleConfig.getWebServiceEndpointConfigMap();
                if ( epMap == null) {
                    if (isCreateIfNone)
                       return webModuleConfig.createWebServiceEndpointConfig(wsName, null);
                } else {
                    WebServiceEndpointConfig wsEpConfig = (WebServiceEndpointConfig) epMap.get(wsName);
                     if ((wsEpConfig == null) && (isCreateIfNone)){
                         return webModuleConfig.createWebServiceEndpointConfig(wsName,null);
                    } else {
                        return wsEpConfig;
                    }
                }
               
View Full Code Here

                    }
                }
            } else if(type.equals(WebServiceEndpointInfo.SERVLET_IMPL)){
                Map <String, WebModuleConfig> map =
                        dc.getWebModuleConfigMap();
                WebModuleConfig webConfig = map.get(appName);
                if (webConfig == null){
                    // should never happen
                    _logger.log(Level.FINE, "Could not find a web module" +
                            " with  name = "+appName);
                } else{
                    Map <String, WebServiceEndpointConfig> webmap =
                            webConfig.getWebServiceEndpointConfigMap();
                    wsec = webmap.get(pureWebServiceName);
                    if (wsec == null){
                        wsec = webConfig.createWebServiceEndpointConfig(
                                pureWebServiceName, null);
                        wsec.setJBIEnabled(false);
                    }
                    for (String jndiname  : published.keySet()){
                        webConfig.createProperty(jndiname+"__"+
                                underScoredWebServiceName,
                                published.get(jndiname));
                    }
                }
            }
View Full Code Here

                }
               
            } else if (type.equals(WebServiceEndpointInfo.SERVLET_IMPL)){
                Map<String, WebModuleConfig> webMap =
                        dc.getWebModuleConfigMap();
                WebModuleConfig config = webMap.get(appId);
                Map<String, WebServiceEndpointConfig> wsecMap =
                        config.getWebServiceEndpointConfigMap();
                wsec = wsecMap.get(pureWebServiceName);
                for (int i=0; i<registryLocations.length; i++){
                    String jndiname = registryLocations[i];
                    config.removeProperty(jndiname+"__"+
                            underScoredWebServiceName);
                }
               
            }
        }
View Full Code Here

                    wsec = ejbmap.get(pureWebServiceName);
                }
            } else if(type.equals(WebServiceEndpointInfo.SERVLET_IMPL)){
                Map <String, WebModuleConfig> map =
                        dc.getWebModuleConfigMap();
                WebModuleConfig webConfig = map.get(appName);
                if (webConfig == null){
                    // should never happen
                    _logger.log(Level.FINE, "Could not find a web module" +
                            " with  name = "+appName);
                } else{
                    Map <String, WebServiceEndpointConfig> webmap =
                            webConfig.getWebServiceEndpointConfigMap();
                    wsec = webmap.get(pureWebServiceName);
                }
            }
        }
        if(wsec != null){
View Full Code Here

                            "__"+ underScoredWebServiceName);
                }
            } else if(type.equals(WebServiceEndpointInfo.SERVLET_IMPL)){
                Map <String, WebModuleConfig> map =
                        dc.getWebModuleConfigMap();
                WebModuleConfig webConfig = map.get(appName);
                if (webConfig == null){
                    // should never happen
                    _logger.log(Level.FINE, "Could not find a web module" +
                            " with  name = "+appName);
                } else{
                    organization =
                            (String)webConfig.getPropertyValue(registryLocation+
                            "__"+ underScoredWebServiceName);
                }
            }
        }
        return organization;
View Full Code Here

TOP

Related Classes of com.sun.appserv.management.config.WebModuleConfig

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.