Package com.sun.enterprise.instance

Examples of com.sun.enterprise.instance.AppsManager


            throw new ConfigException("Error getting current app server context; ApplicationServer.getServerContext() returned null");
        }
        if ((instEnv = appServerContext.getInstanceEnvironment()) == null) {
            throw new ConfigException("Error getting current instance environment; appServercontext.getInstanceEnvironment() returned null");
        }
        appsManager = new AppsManager(instEnv, false);
        appclientModulesManager = new AppclientModulesManager(instEnv, false);
    }
View Full Code Here


            switch (appType)
            {
                case DeploymentConstants.EAR :
                    J2eeApplication app = applicationsConfigBean.
                                            getJ2eeApplicationByName(appName);
                    AppsManager appsManager = new AppsManager(iEnv);
                    appLocation = appsManager.getGeneratedXMLLocation(appName);

                    // for upgrade scenario, we fall back to the original
                    // location
                    if (appLocation == null ||
                        !FileUtils.safeIsDirectory(appLocation)) {
View Full Code Here

            String appLocation = null;
            AbstractArchive moduleArchive = null;
            switch (appType)
            {
                case DeploymentConstants.EAR :
                    AppsManager appsManager = new AppsManager(iEnv);
                    appLocation = appsManager.getGeneratedXMLLocation(appName);
                    if (appLocation == null || !FileUtils.safeIsDirectory(appLocation)) {
                        J2eeApplication app = applicationsConfigBean.
                                            getJ2eeApplicationByName(appName);
                        appLocation = app.getLocation();
                    }
View Full Code Here

                failedObjects.append(lineSep).append(" ApplicationServer.getServerContext()");
            } else if ((instEnv = appServerContext.getInstanceEnvironment()) == null) {
                failedObjects.append(lineSep).append(" appServerContext.getInstanceEnvironment()");
            } else {
                try {
                    appsManager = new AppsManager(instEnv, false);

                } catch (ConfigException ce) {
                    relatedException = ce;
                    failedObjects.append(lineSep).append(" AppsManager(instEnv)");
                }
View Full Code Here

      return;
    }
   
    try
    {
      AppsManager  appMgr = new AppsManager(instanceEnv);
      boolean    isReg = appMgr.isRegistered(name);
     
      if(forced && isReg && isDeploy())
        command = DeploymentCommand.REDEPLOY;
    }
    catch(Exception e)
View Full Code Here

        String msg = localStrings.getString(
          "enterprise.deployment.backend.null_applicationenvironment_object");
        throw new IASDeploymentException( msg );
            }

      appMgr = new AppsManager(getInstanceEnv());
      appName = request.getName();
     
      if(!StringUtils.ok(appName)) {
        String msg = localStrings.getString(
            "enterprise.deployment.backend.null_appname" );
View Full Code Here

        webFeatureFactory = _serverContext.getPluggableFeatureFactory().getWebContainerFeatureFactory();

        try {
            webModulesManager = new WebModulesManager(instance);
            appsManager = new AppsManager(instance);
        } catch (ConfigException cx) {
            _logger.log(Level.WARNING,
                "Error in creating web modules manager: ", cx);
        }
View Full Code Here

       
        if ((j2ee_apps.length + ejb_modules.length) == 0)
            return (new Application[] {});
       
        // Get the respective Managers to retrieve Deployment descriptors
        AppsManager appsManager = getAppsManager();
        EjbModulesManager ejbModulesManager = getEjbModulesManager();
       
        // Get Deployment desc for J2EE apps.
        for (int i=0; i<j2ee_apps.length; i++){
            String appName = j2ee_apps[i].getName();
            // Check if the application is referenced by the server instance on
            // which recovery is happening.
            if (!(ServerHelper.serverReferencesApplication(configContext_, sc_.getInstanceName(), appName) ))
                continue;
           
            try{
                Application appDescriptor =
                        appsManager.getAppDescriptor(appName,
                        ASClassLoaderUtil.getSharedClassLoader());
                deployedAppsDescriptorList.add(appDescriptor);
            } catch (Exception e){
                String message = localStrings.getString(
                    "error.getting.application.DD",
View Full Code Here

       
    }
   
    public ConnectorDescriptor getConnectorDescriptorFromUri(String appName, String raLoc)
    throws ConfigException{
        AppsManager am = getAppsManager();
        Application app = am.getAppDescriptor(appName,
                ASClassLoaderUtil.getSharedClassLoader());
        return app.getRarDescriptorByUri(raLoc);
    }
View Full Code Here

     * @throws com.sun.enterprise.admin.common.exception.ServerInstanceException
     */
    public Application getDescrForApplication(String appName)
            throws ServerInstanceException {
        try {
            AppsManager appsMgr = InstanceFactory.createAppsManager(getInstanceName());
            return (Application) DeploymentUtils.getDescriptor(appName, appsMgr);
        } catch (Exception e) {
            throw new ServerInstanceException(e.getLocalizedMessage());
        }
    }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.instance.AppsManager

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.