Package com.sun.appserv.management.config

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


                convertHashesToUnderScores(webServiceName);
       
        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  {
                organization =
                        (String)appConfig.getPropertyValue(registryLocation+"__"+
                        underScoredWebServiceName);
            }
        } else {
            String type = (String)webServiceInfoMap.
                    get(WebServiceEndpointInfo.SERVICE_IMPL_TYPE_KEY);
View Full Code Here


    private void enableAllApplications(final Map<String,DeployedItemRefConfig> deployedItemRefConfigMap) {
        //iterate through all the deployed items
        for (DeployedItemRefConfig deployedItemRefConfig : deployedItemRefConfigMap.values()) {
           
            //Check to see if the deployed item is App or Module (Web, EJB, RAR or Appclient)
            final J2EEApplicationConfig app =
                    mDomainConfig.getJ2EEApplicationConfigMap().get(deployedItemRefConfig.getName());
            if(app != null) {
                //if the type is user, then only set the lb-enabled to true
                if(app.getObjectType().equals(ObjectTypeValues.USER)) {
                    deployedItemRefConfig.setLBEnabled(true);
                }
                continue;
            }
            //Check to see if this is Web module
View Full Code Here

  ModuleConfig module = null;

  if ("application".equals(appType)){
      module = AMXUtil.getDomainConfig().getJ2EEApplicationConfigMap().get(name);
            if (module != null){
                J2EEApplicationConfig j2eeApp = (J2EEApplicationConfig) module;
    handlerCtx.setOutputValue("javaWebStart", j2eeApp.getJavaWebStartEnabled());
    handlerCtx.setOutputValue("availEnabled", j2eeApp.getAvailabilityEnabled());
    if(!AMXUtil.supportCluster()) {
      //We need this only for PE, so hard code it "server"
      handlerCtx.setOutputValue("vs", TargetUtil.getAssociatedVS(name, "server"));
    }
      }
View Full Code Here

        try{
  ModuleConfig module = null;
  if ("application".equals(appType)){
      module = AMXUtil.getDomainConfig().getJ2EEApplicationConfigMap().get(name);
            if (module != null){
                J2EEApplicationConfig j2eeApp = (J2EEApplicationConfig) module;
    j2eeApp.setJavaWebStartEnabled((Boolean)handlerCtx.getInputValue("javaWebStart"));
                if (AMXUtil.isEE()){
                    Boolean ae = (Boolean)handlerCtx.getInputValue("availEnabled");
                    if (ae != null)
                        j2eeApp.setAvailabilityEnabled(ae);
                }
    else {
      String vs = (String)handlerCtx.getInputValue("vs");
      //only for PE, so hard-code to 'server'
      TargetUtil.setVirtualServers(name, "server", vs);
View Full Code Here

                oneRow.put("componentName", on.getKeyProperty("name"));
                oneRow.put("componentType", on.getKeyProperty("j2eeType"));
                if(hasAction){
                    if ("AppClientModule".equals(on.getKeyProperty("j2eeType"))){
                        oneRow.put("downloadText", GuiUtil.getMessage("ComponentTable.downloadClientStub"));
                        J2EEApplicationConfig appConfig = AMXUtil.getDomainConfig().getJ2EEApplicationConfigMap().get(appName);
                        boolean javaWebStart = appConfig.getJavaWebStartEnabled();
                        oneRow.put("javaWebStart", javaWebStart);
                    }else{
                        oneRow.put("javaWebStart", false);
                        oneRow.put("downloadText", " ");
                    }
View Full Code Here

    public static void getDeployedAppInfo(HandlerContext handlerCtx){
       
        Iterator<J2EEApplicationConfig> iter = AMXUtil.getDomainConfig().getJ2EEApplicationConfigMap().values().iterator();
        List result = new ArrayList();
        while(iter.hasNext()){
            J2EEApplicationConfig appConfig = iter.next();
            if (ObjectTypeValues.USER.equals(appConfig.getObjectType())){
                HashMap oneRow = new HashMap();
                oneRow.put("name", appConfig.getName());
                oneRow.put("enabled", TargetUtil.getEnabledStatus(appConfig, true));
                oneRow.put("location", appConfig.getLocation());
                oneRow.put("selected", false);
                oneRow.put("hasLaunch", false);
                result.add(oneRow);
            }
        }
View Full Code Here

        boolean embedded = GuiUtil.isEmpty(applicationName) ? false: true;
        boolean jwsEnabled;
        String location = null;
        try {
            if (embedded){
                J2EEApplicationConfig appConfig = AMXUtil.getDomainConfig().getJ2EEApplicationConfigMap().get(applicationName);
                jwsEnabled = appConfig.getJavaWebStartEnabled();
                location = appConfig.getLocation();
            }else{
                AppClientModuleConfig module = AMXUtil.getDomainConfig().getAppClientModuleConfigMap().get(appClientName);
                jwsEnabled = module.getJavaWebStartEnabled();
                location = module.getLocation();
            }
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.