Package org.glassfish.admin.amx.intf.config

Examples of org.glassfish.admin.amx.intf.config.Domain


   
    private SecurityService getSecurityService()
    {  
        // this is ugly, the underlying API doesn't understand that there is more than one <security-service>,
        // each with one or more <auth-realm>.  So we'll just take the first config
        final Domain domainConfig = getDomainRootProxy().child(Domain.class);
        final Config config = domainConfig.getConfigs().getConfig().values().iterator().next();
       
        return config.getSecurityService();
    }
View Full Code Here


    private static final String FILE_REALM_CLASSNAME = "com.sun.enterprise.security.auth.realm.file.FileRealm";
           

     public String getAnonymousUser() {
        final DomainRoot domainRoot = getDomainRootProxy();
        final Domain domainConfig = domainRoot.child(Domain.class);
        final Map<String,Config> configs = domainConfig.getConfigs().childrenMap(Config.class);

        // find the ADMIN_REALM
        AuthRealm adminFileAuthRealm = null;
        for( final Config config : configs.values() )
        {
View Full Code Here

        }
        return getDomainConfig();
    }

    public synchronized void unloadAMXMBeans() {
        final Domain domainConfig = getDomainConfigProxy();
        if (domainConfig != null) {
            ImplUtil.unregisterAMXMBeans(domainConfig);
        }
        mLoader.stop();
        mLoader = null;
View Full Code Here

TOP

Related Classes of org.glassfish.admin.amx.intf.config.Domain

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.