Package org.apache.geronimo.system.serverinfo

Examples of org.apache.geronimo.system.serverinfo.ServerInfo


                    && !WrappingLoginModule.supportedOptions.contains(option)) {
                log.warn("Ignoring option: "+option+". Not supported.");
            }
        }
        try {
            ServerInfo serverInfo = (ServerInfo) options.get(JaasLoginModuleUse.SERVERINFO_LM_OPTION);
            URI usersURI = new URI((String)options.get(USERS_URI));
            URI groupsURI = new URI((String)options.get(GROUPS_URI));
            loadProperties(serverInfo, usersURI, groupsURI);
        } catch (Exception e) {
            log.error("Failed to load properties", e);
View Full Code Here


                    && !WrappingLoginModule.supportedOptions.contains(option)) {
                log.warn("Ignoring option: "+option+". Not supported.");
            }
        }
        try {
            ServerInfo serverInfo = (ServerInfo) options.get(JaasLoginModuleUse.SERVERINFO_LM_OPTION);
            final String groups = (String) options.get(GROUPS_URI);
            URI groupsURI = new URI(groups);
            loadProperties(serverInfo, groupsURI);
        } catch (Exception e) {
            log.error("Initialization failed", e);
View Full Code Here

    public void mergeOverrides(ServerInstanceData serverInstance, AttributesType overrides) throws Exception {
       
        if (serverInstance == null) {
            throw new NullPointerException("No such server: " + serverInstance.getName());
        }
        ServerInfo serverInfo = new BasicServerInfo(geronimoHome.getAbsolutePath(), false);       
       
        LocalAttributeManager attributeStore = new LocalAttributeManager(serverInstance.getConfigFile(), serverInstance.getConfigSubstitutionsFile(),
                serverInstance.getConfigSubstitutionsPrefix(),
                false,
                serverInfo);
View Full Code Here

                    && !WrappingLoginModule.supportedOptions.contains(option)) {
                log.warn("Ignoring option: "+option+". Not supported.");
            }
        }
        try {
            ServerInfo serverInfo = (ServerInfo) options.get(JaasLoginModuleUse.SERVERINFO_LM_OPTION);
            final String users = (String) options.get(USERS_URI);
            final String groups = (String) options.get(GROUPS_URI);
            digest = (String) options.get(DIGEST);
            encoding = (String) options.get(ENCODING);
View Full Code Here

    public void testCreateSystemUsingServerInfo() throws Exception {
       
        System.setProperty("derby.connection.requireAuthentication", "false");
       
        ServerInfo serverInfo = new BasicServerInfo(systemDir.toString());
        String derbyDir = "var/dbderby";
        DerbySystemGBean gbean = new DerbySystemGBean(serverInfo, derbyDir, kernel);
        try {
            gbean.doStart();
            new org.apache.derby.jdbc.EmbeddedDriver();
View Full Code Here

        return jacc;
    }

    protected void setUpSecurityService() throws Exception {
        String domainName = "demo-properties-realm";
        ServerInfo serverInfo = new BasicServerInfo(".");

        new SecurityServiceImpl(cl, serverInfo, GeronimoPolicyConfigurationFactory.class.getName(), GeronimoPolicy.class.getName(), null, null, null, null);

        Map<String, Object> options = new HashMap<String, Object>();
        options.put("usersURI", new File(BASEDIR, "src/test/resources/data/users.properties").toURI().toString());
View Full Code Here

    protected void setUp() throws Exception {
        cl = this.getClass().getClassLoader();

        configurationBaseURL = cl.getResource("deployables/");

        ServerInfo serverInfo = new BasicServerInfo(".");
        container = new JettyContainerImpl("test:name=JettyContainer", null, new File(BASEDIR, "target/var/jetty").toString(), serverInfo);
        container.doStart();
        connector = new HTTPSocketConnector(container, null);
        connector.setPort(5678);
        connector.setMaxThreads(50);
View Full Code Here

                file.delete();
            }
        }
    }
    protected void setUpSecurityService() throws Exception {
        ServerInfo serverInfo = new BasicServerInfo(".");

        new SecurityServiceImpl(cl, serverInfo, GeronimoPolicyConfigurationFactory.class.getName(), GeronimoPolicy.class.getName(), null, null, null, null);
    }
View Full Code Here

        assertEquals(3, channelType.getInterceptor().size());       
        assertEquals(1, channelType.getInterceptor().get(2).getMember().size());
    }

    public void testGBeanServer1() throws Exception {
        ServerInfo serverInfo = new BasicServerInfo(BASEDIR.getAbsolutePath());
        TomcatServerGBean tomcatServerGBean = new TomcatServerGBean(null, SERVER_1, null, serverInfo, null, null, getClass().getClassLoader(), null);
        try {
            tomcatServerGBean.doStart();
        } finally {
            tomcatServerGBean.doStop();
View Full Code Here

        return jacc;
    }

    protected void setUpSecurityService() throws Exception {
        String domainName = "demo-properties-realm";
        ServerInfo serverInfo = new BasicServerInfo(".");

        new SecurityServiceImpl(cl, serverInfo, GeronimoPolicyConfigurationFactory.class.getName(), GeronimoPolicy.class.getName(), null, null, null, null);

        Map<String, Object> options = new HashMap<String, Object>();
        options.put("usersURI", new File(BASEDIR, "src/test/resources/data/users.properties").toURI().toString());
View Full Code Here

TOP

Related Classes of org.apache.geronimo.system.serverinfo.ServerInfo

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.