Package com.sun.appserv.management.config

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


             if (appType.equals(J2EEApplicationConfig.J2EE_TYPE)){
                 J2EEApplicationConfig j2eeApp = AMXUtil.getDomainConfig().getJ2EEApplicationConfigMap().get(appName);
                 deploymentProps.setProperty(DeploymentProperties.AVAILABILITY_ENABLED, (j2eeApp.getAvailabilityEnabled())? "true" : "false");
             }
             if (appType.equals(EJBModuleConfig.J2EE_TYPE)){
                 EJBModuleConfig ejbModule = AMXUtil.getDomainConfig().getEJBModuleConfigMap().get(appName);
                 deploymentProps.setProperty(DeploymentProperties.AVAILABILITY_ENABLED, (ejbModule.getAvailabilityEnabled())? "true" : "false");
             }

             deploymentProps.setProperty(DeploymentProperties.ARCHIVE_NAME, origPath);
             deploymentProps.setProperty(DeploymentProperties.FORCE, "true");
             deploymentProps.setProperty(DeploymentProperties.NAME, appName);
View Full Code Here


            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);
            }
        }
        return wsConfig;
    }
View Full Code Here

            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);
            }
        }
        return wsConfig;
    }
View Full Code Here

                    ExtensionModuleConfig extnConfig
                        = AMXUtil.getDomainConfig().getExtensionModuleConfigMap().get(appName);
                    map = extnConfig.getWebServiceEndpointConfigMap();
                }
            } else {
                EJBModuleConfig ejbConfig
                    = AMXUtil.getDomainConfig().getEJBModuleConfigMap().get(appName);
                map = ejbConfig.getWebServiceEndpointConfigMap();
            }
        }
        String fullQualName = buildFullyQualifiedWSName(bundleName, wsName, isStandalone);
        wsConfig = map.get(fullQualName);
        return wsConfig;
View Full Code Here

            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();
            }
        }
        String fullQualName = buildFullyQualifiedWSName(bundleName, wsName, isStandalone);
        wsConfig = map.get(fullQualName);
        return wsConfig;
View Full Code Here

        } else if ( numTokens == 2 ) {
            // this is a stand alone module
            // we need to figure out a type
            String modType = getStandAloneModuleType(mbsc, fqWebServiceName);
            if ( modType.equals(WebServiceEndpointInfo.EJB_IMPL)) {
                EJBModuleConfig ejbModuleConfig = getEJBModuleConfigMBean(mbsc, regName);
                 if ( ejbModuleConfig == null){
                     throw new CommandException (
                                getLocalizedString("NoEJBModuleFoundForWS",
                                                    new Object[] {regName}));            
                }
                Map epMap = ejbModuleConfig.getWebServiceEndpointConfigMap();
                if ( epMap == null) {
                    if (isCreateIfNone)
                       return ejbModuleConfig.createWebServiceEndpointConfig(wsName,null);
                } else {
                    WebServiceEndpointConfig wsEpConfig = (WebServiceEndpointConfig) epMap.get(wsName);
                    if ((wsEpConfig == null) && (isCreateIfNone)) {
                         return ejbModuleConfig.createWebServiceEndpointConfig(wsName,null);
                    } else {
                        return wsEpConfig;
                    }
                }
            } else if (modType.equals(WebServiceEndpointInfo.SERVLET_IMPL) ) {
View Full Code Here

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

            String type = (String)webServiceInfoMap.get(
                    WebServiceEndpointInfo.SERVICE_IMPL_TYPE_KEY);
            if (type.equals(WebServiceEndpointInfo.EJB_IMPL)){
                Map<String, EJBModuleConfig> ejbMap =
                        dc.getEJBModuleConfigMap();
                EJBModuleConfig config = ejbMap.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);
                }
               
            } 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

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

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

TOP

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

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.