Package com.sun.appserv.management.config

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


                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");
             }
             if (appType.equals(EJBModuleConfig.J2EE_TYPE)){
                 EJBModuleConfig ejbModule = AMXUtil.getDomainConfig().getEJBModuleConfigMap().get(appName);
                 deploymentProps.setProperty(DeploymentProperties.AVAILABILITY_ENABLED, (ejbModule.getAvailabilityEnabled())? "true" : "false");
             }
View Full Code Here


   
    private static WebServiceEndpointConfig createWebServiceEndpointConfig(String appName, String bundleName, String wsName, String type, Boolean isStandalone) {
        WebServiceEndpointConfig wsConfig = null;
        String fullQualName = buildFullyQualifiedWSName(bundleName, wsName, isStandalone);
        if (!isStandalone) {
            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);
View Full Code Here

        String type = wsInfo.getServiceImplType();
        boolean isStandalone = wsInfo.isAppStandaloneModule();
        WebServiceEndpointConfig wsConfig = null;
        String fullQualName = buildFullyQualifiedWSName(bundleName, wsName, isStandalone);
        if (!isStandalone) {
            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);
View Full Code Here

        String type = wsInfo.getServiceImplType();
        boolean isStandalone = wsInfo.isAppStandaloneModule();
        WebServiceEndpointConfig wsConfig = null;
        Map<String,WebServiceEndpointConfig> map = null;
        if (!isStandalone) {
            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
View Full Code Here

     
    private static WebServiceEndpointConfig getWebServiceEndpointConfig(String appName, String bundleName, String wsName, String type, Boolean isStandalone) {
        WebServiceEndpointConfig wsConfig = null;
        Map<String,WebServiceEndpointConfig> map = null;
        if (!isStandalone) {
            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();
View Full Code Here

        String regName = fqWebServiceName.substring(0,firstHashIdx);
        StringTokenizer sTok = new StringTokenizer(fqWebServiceName,"#");
        int numTokens = sTok.countTokens();
        if ( numTokens == 3 ) {
            // this is an application
            J2EEApplicationConfig appConfig = getApplicationConfigMBean(mbsc, regName);
             if ( appConfig == null){
                 throw new CommandException (
                            getLocalizedString("NoAppFoundForWS",
                                                new Object[] {regName}));            
             }
            DomainRoot domainRoot = ProxyFactory.getInstance(mbsc).getDomainRoot();
            final WebServiceEndpointInfo info =
                domainRoot.getWebServiceMgr().getWebServiceEndpointInfo(fqWebServiceName);
            if (info == null)
            {
                String moduleName = fqWebServiceName.substring(firstHashIdx + 1,
                                            fqWebServiceName.lastIndexOf("#"));
                throw new CommandException(getLocalizedString("NoModuleOrEndpointFoundForWS",
                                                new Object[]{fqWebServiceName}));
            }
             Map epMap = appConfig.getWebServiceEndpointConfigMap();
                if (epMap == null) {
                    if (isCreateIfNone)
                    {
                        return appConfig.createWebServiceEndpointConfig(wsName,null);
                    }
                } else {
                    WebServiceEndpointConfig wsEpConfig = (WebServiceEndpointConfig) epMap.get(wsName);
                    if ((wsEpConfig == null) && (isCreateIfNone)) {
                         return appConfig.createWebServiceEndpointConfig(wsName,null);
                    } else {
                        return wsEpConfig;
                    }
                }
        } else if ( numTokens == 2 ) {
View Full Code Here

       final Iterator iter = s.iterator();
       while ( iter.hasNext() )
       {

            J2EEApplicationConfig ac  = (J2EEApplicationConfig)iter.next();
            System.out.println("config name is " + ac.getName());
                           
            Map m = ac.getWebServiceEndpointConfigMap();            
            int init  = m.size();
            System.out.println("WebServiceEndpoints found " + init);
            Iterator itr = m.values().iterator();
            while (itr.hasNext()) {
                WebServiceEndpointConfig wsCfg = (WebServiceEndpointConfig)
View Full Code Here

        WebServiceEndpointConfig wsec = null;
       
        if(!isStandAlone) {
            Map <String, J2EEApplicationConfig> map =
                    dc.getJ2EEApplicationConfigMap();
            J2EEApplicationConfig appConfig = map.get(appName);
            if (appConfig == null) {
                // this will never happen as this created by deployment
                _logger.log(Level.FINE, "Could not find an application with " +
                        " name = "+appName);
            } else  {
                Map <String, WebServiceEndpointConfig> wsmap =
                        appConfig.getWebServiceEndpointConfigMap();
                wsec = wsmap.get(pureWebServiceName);
                if (wsec == null){
                    wsec = appConfig.createWebServiceEndpointConfig(
                            pureWebServiceName, null);
                    wsec.setJBIEnabled(false);
                }
                for (String jndiname  : published.keySet()){
                    appConfig.createProperty(jndiname+"__"+
                            underScoredWebServiceName,
                            published.get(jndiname));
                }
            }
        } else {
View Full Code Here

       
        WebServiceEndpointConfig wsec = null;
        if (!isStandAlone) {
            Map<String, J2EEApplicationConfig> appMap =
                    dc.getJ2EEApplicationConfigMap();
            J2EEApplicationConfig config = appMap.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 {
            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

        WebServiceEndpointConfig wsec = null;
       
        if(!isStandAlone) {
            Map <String, J2EEApplicationConfig> map =
                    dc.getJ2EEApplicationConfigMap();
            J2EEApplicationConfig appConfig = map.get(appName);
            if (appConfig == null) {
                // this will never happen as this created by deployment
                _logger.log(Level.FINE, "Could not find an application with " +
                        " name = "+appName);
            } else  {
                Map <String, WebServiceEndpointConfig> wsmap =
                        appConfig.getWebServiceEndpointConfigMap();
                wsec = wsmap.get(pureWebServiceName);
            }
        } else {
            String type = (String)webServiceInfoMap.
                    get(WebServiceEndpointInfo.SERVICE_IMPL_TYPE_KEY);
View Full Code Here

TOP

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

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.