Examples of BasicServerInfo


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

    }

    protected void setUpSecurity() 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

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

                null,
                null,
                null);
        engine.doStart();

        ServerInfo serverInfo = new BasicServerInfo(".");
        container = new TomcatContainer(cl, new File(BASEDIR, "target/var/catalina").toString(), null, engine, null, serverInfo, null, null);
        container.doStart();

        connector = new Http11ConnectorGBean("HTTP", null, "localhost", port++, container, serverInfo);
        connector.doStart();
View Full Code Here

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

                                final Kernel kernel,
                                final ClassLoader classLoader) throws Exception {
        final ArtifactManager artifactManager = new DefaultArtifactManager();

        FileUtils.forceMkdir(new File(targetServerPath));
        serverInfo = new BasicServerInfo(targetServerPath, false);
        File targetRepositoryFile = serverInfo.resolve(targetRepositoryPath);
        FileUtils.forceMkdir(targetRepositoryFile);
        writeableRepo = new Maven2Repository(targetRepositoryFile);
        configStore = new RepositoryConfigurationStore(writeableRepo);
        threadPool = null;
View Full Code Here

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

        fakeRepo = "http://nowhere.com/";
        String url = getClass().getResource("/geronimo-plugins.xml").toString();
        int pos = url.lastIndexOf("/");
        testRepo = url.substring(0, pos);
        installer = new PluginInstallerGBean(new MockConfigManager(), new MockWritableListableRepository(), new MockConfigStore(),
                new BasicServerInfo("."), new ThreadPool() {
            public int getPoolSize() {
                return 0;
            }

            public int getMaximumPoolSize() {
View Full Code Here

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

    }

    protected void setUpSecurity() 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

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

    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

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

        new JettyPOJOWebServiceHolder();
    }

    public void testJettyContainerImpl() throws Exception {
        JettyContainerImpl.getGBeanInfo();
        ServerInfo serverInfo = new BasicServerInfo(".");
        new JettyContainerImpl(null, null, null, serverInfo);
    }
View Full Code Here

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

            }
            if (i == 100) {
                throw new RuntimeException("Could not create server base: " + serverBase);
            }
        }
        serverInfo = new BasicServerInfo(serverBase.getAbsolutePath(), false);
        File repoBase = new File(new File(new File(new File(new File(getBaseDir(), "src"), "test"), "resources"), "copyfiletest"), "repository");
        if (!repoBase.exists()) {
            throw new RuntimeException("Could not locate repo :" + repoBase);
        }
        Maven2Repository repo = new Maven2Repository(repoBase.toURI(), serverInfo, true);
View Full Code Here

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

                10, //                "maxBuffers",                       log
                2, //                "maxLogFiles",
                2, //                "minBuffers",
                10,//                "threadsWaitingForceThreshold"});
                xidFactory,
                new BasicServerInfo(targetDir)
        );
        howlLog.doStart();
        txLog = howlLog;
    }
View Full Code Here

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

                200, //                "maxBlocksPerFile",
                10, //                "maxBuffers",
                2, //                "maxLogFiles",
                2, //                "minBuffers",
                10,//                "threadsWaitingForceThreshold"});
                xidFactory, new BasicServerInfo(new File(basedir, "target").getAbsolutePath())
        );
        howlLog.doStart();
        return howlLog;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.