Package com.sun.enterprise.config.serverbeans

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


            // Please see http://java.net/jira/browse/GLASSFISH-16665 for details
            // The workaround duplicates code from AdminAdapter.
            ServerEnvironment serverEnvironment = habitat.getByContract(ServerEnvironment.class);
            final Principal sslPrincipal = !serverEnvironment.isDas() || Boolean.getBoolean(DAS_LOOK_FOR_CERT_PROPERTY_NAME) ? req.getUserPrincipal() : null;

            AdminService as = habitat.getByType(AdminService.class);
            access =  authenticator.loginAsAdmin(user, password, as.getAuthRealmName(), remoteHost, getAuthRelatedHeaders(req), sslPrincipal);
        }
        return access;
    }
View Full Code Here


                            List<IiopListener> iiopListeners = iiopSvc.getIiopListener();
                            checkDuplicate(iiopListeners);
                        }

                        // config-->admin-service-->jmx-connector
                        AdminService adminsvc = cfg.getAdminService();
                        if (adminsvc != null) {
                            List<JmxConnector> jmxConnectors = adminsvc.getJmxConnector();
                            checkDuplicate(jmxConnectors);
                        }

                        // config-->jms-service-->jms-host
                        JmsService jmsService = cfg.getJmsService();
View Full Code Here

                port = Integer.valueOf(nl.getPort());
            } catch(NumberFormatException ne) {
                port = 8080;   // this is the last resort
            }
            //get the context root from admin-service
            AdminService as = cfg.getAdminService();
            if (as == null)
                guiContextRoot = ServerEnvironmentImpl.DEFAULT_ADMIN_CONSOLE_CONTEXT_ROOT;
            else
                setGuiContextRootFromAdminService(as);
        }
View Full Code Here

        }
        return protocol;
    }

    private void addSslToJMXConnector(Config config, ActionReport report) {
        AdminService adminService = config.getAdminService();
        // ensure we have the specified listener
        JmxConnector jmxConnector = null;
        for (JmxConnector jmxConn : adminService.getJmxConnector()) {
            if (jmxConn.getName().equals(listenerId)) {
                jmxConnector = jmxConn;
            }
        }
        if (jmxConnector == null) {
View Full Code Here

            return (configName.equals(DAS_CONFIG_NAME) ? dasAlias : instanceAlias);
        }
       
        private JmxConnector writeableJmxConnector() throws TransactionFailure {
            if (jmxConnector_w == null) {
                final AdminService adminService = config_w.getAdminService();
                if (adminService == null) {
                    return null;
                }
                final JmxConnector jmxC = adminService.getSystemJmxConnector();
                if (jmxC == null) {
                    return null;
                }
                jmxConnector_w = t.enroll(jmxC);
            }
View Full Code Here

                port = Integer.valueOf(nl.getPort());
            } catch(NumberFormatException ne) {
                port = 8080;   // this is the last resort
            }
            //get the context root from admin-service
            AdminService as = cfg.getAdminService();
            if (as == null)
                guiContextRoot = ServerEnvironmentImpl.DEFAULT_ADMIN_CONSOLE_CONTEXT_ROOT;
            else
                setGuiContextRootFromAdminService(as);
        }
View Full Code Here

TOP

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

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.