Package com.sun.enterprise.instance

Examples of com.sun.enterprise.instance.InstanceEnvironment


                DeploymentServiceUtils.getRegisteredType(moduleID);
       
            final DeploymentTarget target =
                DeploymentServiceUtils.getDeploymentTarget(targetName);
           
            InstanceEnvironment env =
                ApplicationServer.getServerContext().getInstanceEnvironment();
            DeploymentRequest req = new DeploymentRequest(
                                    env,
                                    type,
                                    DeploymentCommand.DEPLOY);
View Full Code Here


                DeploymentServiceUtils.getRegisteredType(moduleID);
    
            final DeploymentTarget target =
                DeploymentServiceUtils.getDeploymentTarget(targetName);
       
            InstanceEnvironment env =
                ApplicationServer.getServerContext().getInstanceEnvironment();
            DeploymentRequest req = new DeploymentRequest(
                                    env,
                                    type,
                                    DeploymentCommand.UNDEPLOY);
View Full Code Here

            } else {
                type = DeploymentServiceUtils.getTypeFromFile(
                            moduleID, deployFile.getAbsolutePath());
            }       

            InstanceEnvironment env =
                ApplicationServer.getServerContext().getInstanceEnvironment();
            DeploymentRequest req = new DeploymentRequest(
                                    env,
                                    type,
                                    DeploymentCommand.DEPLOY);
View Full Code Here

            if (objectType.isWEB()) {
                DeploymentServiceUtils.checkWebModuleReferences(mModuleID);
            }

            InstanceEnvironment env =
                ApplicationServer.getServerContext().getInstanceEnvironment();
            DeploymentRequest req = new DeploymentRequest(env,
                objectType, DeploymentCommand.UNDEPLOY);

            DeploymentRequestRegistry.getRegistry().addDeploymentRequest(
View Full Code Here

        //In the new CL hierarchy the parent of common classloader
        //is the shared chain.
        if(Boolean.getBoolean(com.sun.enterprise.server.PELaunch.USE_NEW_CLASSLOADER_PROPERTY))
            parentOfCommonCL = PELaunch.getSharedChain();

        final InstanceEnvironment env = this.context.getInstanceEnvironment();

        try {
            final String dir     =  env.getLibClassesPath();
            final String jarDir  = env.getLibPath();

            // constructs the common class loader. System class loader
            // is the parent of common class loader. Common class loader
            // includes <instance>/lib/classes dir, <instance>/lib/*.jar
            // and <instance>/lib/*.zip
 
View Full Code Here

    }

    public static BaseManager getInstanceManager(
        DeployableObjectType moduleType) {
        try {
            InstanceEnvironment insEnv =
                new InstanceEnvironment(getInstanceName());
            if (moduleType.equals(DeployableObjectType.APP)) {
                return new AppsManager(insEnv);
            } else if (moduleType.equals(DeployableObjectType.EJB)) {
                return new EjbModulesManager(insEnv);
            } else if(moduleType.equals(DeployableObjectType.WEB)) {
View Full Code Here

     */
    public static String[] getContextRootsForEmbeddedWebApp(String appName)
        throws IASDeploymentException {
        try {
            AppsManager appsManager =
                new AppsManager(new InstanceEnvironment(getInstanceName()));
            Application application =
                appsManager.getRegisteredDescriptor(appName);
            // if the application already loaded on DAS
            if (application != null) {
                ArrayList contextRoots = new ArrayList();
View Full Code Here

                SystemPropertyConstants.SERVER_NAME);

            if (sName != null) {
                //_logger.log(Level.INFO, "synchronization.cleaner.begin");

                InstanceEnvironment env = new InstanceEnvironment(sName);
                String configPath = env.getConfigFilePath();
                ConfigContext ctx = null;

                // assumes there is a valid domain.xml
                try {
                    ctx = ConfigFactory.createConfigContext(configPath);
View Full Code Here

     * Returns the absolute path of the config directory.
     *
     * @returns the absolute path of the config directory.
     */
    public String getConfigDir() {
        InstanceEnvironment env =
                ApplicationServer.getServerContext().getInstanceEnvironment();
        return env.getConfigDirPath();
    }
View Full Code Here

        String clientJarLocation = null;
       
        try
        {
            final com.sun.enterprise.server.ServerContext sc  = com.sun.enterprise.server.ApplicationServer.getServerContext();
            InstanceEnvironment iEnv = sc.getInstanceEnvironment();
            ObjectName appsObjName = new ObjectName("com.sun.appserv:type=applications,category=config");
            String appLocation = null;
            ObjectName appObjName = null;
            try {
                appObjName = (ObjectName)getMBeanServer().invoke(appsObjName, "getJ2eeApplicationByName", new Object[] {appName}, new String[] {"java.lang.String"});
View Full Code Here

TOP

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

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.