Package com.sun.enterprise.config.serverbeans

Examples of com.sun.enterprise.config.serverbeans.Config


                        ConfigContext configContext =
                            ConfigFactory.createConfigContext(
                                domainXml.getAbsolutePath());                       
                        String dasName =
                            ServerHelper.getDAS(configContext).getName();           
                        Config dasConfig = ServerHelper.getConfigForServer(
                                                configContext, dasName);
                        JMXConnectorConfig dasInfo =
                            ServerHelper.getJMXConnectorInfo(configContext, 
                                                             dasName);
                        String dasPort =
                            dasConfig.getHttpService().getHttpListenerById(
                            "admin-listener").getPort();
                        String dasHost = dasInfo.getHost();                       
                       
                        getLogger().log(Level.FINE, "dasHost: " + dasHost +
                              " dasPort: " + dasPort + " dasHost2: " + dasHost2
View Full Code Here


        return new ConfigTarget(getConfigRef(), getConfigContext());
    }

    public String getConfigRef() throws ConfigException
    {
        final Config config = ClusterHelper.getConfigForCluster(getConfigContext(), getName());
        return config.getName();
    }
View Full Code Here

    {
        HostAndPort hAndp = null;
        try
        {
//ms1            Server          server  = (Server) super.getBaseConfigBean();
            Config          config  = (Config) super.getConfigBeanByXPath(ServerXPathHelper.XPATH_CONFIG);
            HttpService     https   = config.getHttpService();
           
            HttpListener[] hlArray = https.getHttpListener();
            //check not needed since there should always be atleast 1 httplistener
            //if you don't find one, use first one.
            HttpListener ls = hlArray[0];
View Full Code Here

        return new ConfigTarget(getConfigRef(), getConfigContext());
    }

    public String getConfigRef() throws ConfigException
    {
        final Config config = ServerHelper.getConfigForServer(getConfigContext(), getName());
        return config.getName();              
    }
View Full Code Here

    public void onReady(ServerContext sc)
                        throws ServerLifecycleException {       
               
        try {
            ConfigContext instanceConfigContext = sc.getConfigContext();
            Config instanceConfig = ServerBeansFactory.getConfigBean(
                                                         instanceConfigContext);
            ManagementRules selfManagementRules = instanceConfig.getManagementRules();
      
            if ( selfManagementRules != null ) {
                if ( selfManagementRules.isEnabled() ) {
                    _logger.log(Level.INFO, "smgt.service_enabled");              
                    isServiceEnabled = true;
View Full Code Here

    * @param configCtx The instance config context containing the management
    *                  rules
    */
   void handleEnableService(ConfigContext configCtx) {
       try {
           Config instanceConfig = ServerBeansFactory.getConfigBean(configCtx);
           ManagementRules selfManagementRules = instanceConfig.getManagementRules();
           ManagementRule[] rules = selfManagementRules.getManagementRule();

           for (ManagementRule rule : rules) {
               if (rule.isEnabled()) {
                   addRule(rule, configCtx);
View Full Code Here

        connectorMap = new HashMap<String,PECoyoteConnector>();

        ConfigContext configContext = context.getConfigContext();

        try {
            Config config = ServerBeansFactory.getConfigBean(configContext);
            Server serverBean = ServerBeansFactory.getServerBean(configContext);
            // Create Tomcat Engine
            createEngine();

            HttpService httpService = config.getHttpService();
            configureNotSupported(httpService);

            createConnectors(httpService);
            createJKConnector(httpService);

            createHosts(httpService, config.getSecurityService(),
                        globalAccessLoggingEnabled, serverBean);
       

            checkDefaultVirtualServerPort(httpService);
View Full Code Here

    public void createHost(
                    com.sun.enterprise.config.serverbeans.VirtualServer vse,
                    ConfigContext configContext,
                    boolean enableMonitoring) throws ConfigException{
           
        Config config = ServerBeansFactory.getConfigBean(configContext);

        Server serverBean = null;
        try {
            serverBean = ServerBeansFactory.getServerBean(configContext);
        } catch (ConfigException e) {
            _logger.log(Level.SEVERE, "webcontainer.configError", e);
        }
      
        VirtualServer vs = createHost(config.getHttpService(),
                                      config.getSecurityService(),
                                      vse,
                                      globalAccessLoggingEnabled,
                                      serverBean);
        if ( enableMonitoring ){            
            enableVirtualServerMonitoring(vs);
View Full Code Here

    public static MQJMXConnectorInfo[] getMQJMXConnectorInfo(final String target)
                                throws ConnectorRuntimeException {
        try {
            final Target tgt = getTarget(target);
            final Config config = tgt.getConfigs()[0];
            final JmsService jmsService = config.getJmsService();
           
            ActiveJmsResourceAdapter air = getMQAdapter();
            final Class mqRAClassName = air.getResourceAdapter().getClass();
           
            MQJMXConnectorInfo mqjmxForServer = (MQJMXConnectorInfo)
View Full Code Here

    private static JmsService getJmsServiceOfStandaloneServerInstance(String targetName) throws ConfigException {
        logFine("getJMSServiceOfSI LL " + targetName);
        ConfigContext con = com.sun.enterprise.admin.server.core.AdminService.getAdminService().getAdminContext().getAdminConfigContext();
       
        Config cfg = null;
        if (isAConfig(targetName)) {
            cfg = ServerHelper.getConfigByName(con, targetName);
        } else {
            cfg = ServerHelper.getConfigForServer(con, targetName);
        }
       
        logFine("cfg " + cfg);
        JmsService jmsService     = cfg.getJmsService();
        logFine("jmsservice " + jmsService);
        return jmsService;
    }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.config.serverbeans.Config

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.