Package com.sun.enterprise.config

Examples of com.sun.enterprise.config.ConfigContext


        // if it's redeploy, first undeploy, then deploy
        String origContextRoot = null;
        if (isModuleDeployed(name)) {
            // preserve the context root information for war redeployment
            try {
                ConfigContext confContext = getConfigContext();
                ConfigBean configBean =  ApplicationHelper.findApplication(
                    confContext, name);
                if (configBean instanceof WebModule) {
                    origContextRoot = ((WebModule)configBean).getContextRoot();
                }
View Full Code Here


    }

    private String  getDefaultVirtualServer(String instanceName) {
        String virtualServer=null;
        try {
            ConfigContext context = getConfigContext();
            //Domain domain = (Domain)context.getRootConfigBean();
            //HttpService service = getHttpService(domain,instanceName);
            HttpService service = ServerBeansFactory.getHttpServiceBean(context);
            if(service !=null){
                HttpListener[] hlArray = service.getHttpListener();
View Full Code Here

       
    }

    private String getDefaultTarget() throws AutoDeploymentException {
        try{
            ConfigContext confContext = getConfigContext();
            Domain domain = (Domain)confContext.getRootConfigBean();
            Servers svrs = domain.getServers();
            Server[] svrArr = svrs.getServer();
            int size = svrArr.length;
            String targetName = null;
            /*I am putting this logic specific for TP, as its decided to deploy directly
View Full Code Here

        String fileUrl  = instanceEnvironment.getConfigFilePath();
        
        ConfigContext configContext   =
        ConfigFactory.createConfigContext(fileUrl);*/
        ServerContext serverContext = AdminService.getAdminService().getContext();
        ConfigContext context = serverContext.getConfigContext();
        return context;
    }
View Full Code Here

        // if it's redeploy, first undeploy, then deploy
        String origContextRoot = null;
        if (isModuleDeployed(name)) {
            // preserve the context root information for war redeployment
            try {
                ConfigContext confContext = getConfigContext();
                ConfigBean configBean =  ApplicationHelper.findApplication(
                    confContext, name);
                if (configBean instanceof WebModule) {
                    origContextRoot = ((WebModule)configBean).getContextRoot();
                }
View Full Code Here

    }

    private String  getDefaultVirtualServer(String instanceName) {
        String virtualServer=null;
        try {
            ConfigContext context = getConfigContext();
            //Domain domain = (Domain)context.getRootConfigBean();
            //HttpService service = getHttpService(domain,instanceName);
            HttpService service = ServerBeansFactory.getHttpServiceBean(context);
            if(service !=null){
                HttpListener[] hlArray = service.getHttpListener();
View Full Code Here

       
    }

    private String getDefaultTarget() throws AutoDeploymentException {
        try{
            ConfigContext confContext = getConfigContext();
            Domain domain = (Domain)confContext.getRootConfigBean();
            Servers svrs = domain.getServers();
            Server[] svrArr = svrs.getServer();
            int size = svrArr.length;
            String targetName = null;
            /*I am putting this logic specific for TP, as its decided to deploy directly
View Full Code Here

        String fileUrl  = instanceEnvironment.getConfigFilePath();
        
        ConfigContext configContext   =
        ConfigFactory.createConfigContext(fileUrl);*/
        ServerContext serverContext = AdminService.getAdminService().getContext();
        ConfigContext context = serverContext.getConfigContext();
        return context;
    }
View Full Code Here

        return app.getLibraries();
    }
   
    //Gets the Applications config bean from the application server's configcontext
    private static Applications getApplications() throws ConfigException {
        ConfigContext serverConfigCtx =  ApplicationServer.getServerContext().getConfigContext();
        Domain domain = ((Domain)serverConfigCtx.getRootConfigBean());
        return domain.getApplications();
    }
View Full Code Here

      throws DiagnosticException {
  try {

            logger.log(Level.FINE, "Instance Name :" + instanceName);

            ConfigContext configContext =
                    AdminService.getAdminService().getAdminContext().getAdminConfigContext();
            Server server = ServerHelper.getServerByName(configContext, instanceName);
            configName = server.getConfigRef();
            Config config = ConfigAPIHelper.getConfigByName(configContext,
                    configName);
View Full Code Here

TOP

Related Classes of com.sun.enterprise.config.ConfigContext

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.