Examples of BasicServerInfo


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

        getLog().debug("Setting artifact file: " + targetFile);
        org.apache.maven.artifact.Artifact artifact = project.getArtifact();
        artifact.setFile(targetFile);
        try {
            //now pack up the server.
            ServerInfo serverInfo = new BasicServerInfo(targetServerDirectory.getAbsolutePath(), false);
            ArchiverGBean archiver = new ArchiverGBean(serverInfo);
            if (excludes != null) {
                for (String exclude : excludes) {
                    archiver.addExclude(exclude);
                }
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

                                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

                10, //                "maxBuffers",
                2, //                "maxLogFiles",
                2, //                "minBuffers",
                10,//                "threadsWaitingForceThreshold"});
                xidFactory,
                new BasicServerInfo(new File(basedir, "target").getAbsolutePath())
        );
        howlLog.doStart();
        return howlLog;
    }
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

    }

    protected void setUpSecurity() throws Exception {
        String domainName = "demo-properties-realm";

        ServerInfo serverInfo = new BasicServerInfo(".");

        new SecurityServiceImpl(cl, serverInfo, "org.apache.geronimo.security.jacc.GeronimoPolicyConfigurationFactory", "org.apache.geronimo.security.jacc.GeronimoPolicy", null, null, null, null);

        Properties options = new Properties();
        options.setProperty("usersURI", "src/test-resources/data/users.properties");
View Full Code Here

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

*/
public class DerbySystemGBeanTest extends TestCase {
    private File systemDir;

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

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

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

            public void execute(String consumerName, Runnable runnable) {
View Full Code Here

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

        assertEquals(attributeValue, gbeanData.getAttribute(attributeInfo.getName()));
    }

    protected void setUp() throws Exception {
        super.setUp();
        localAttributeManager = new LocalAttributeManager("target/test-config.xml", false, new BasicServerInfo(basedir));
        configurationName = Artifact.create("configuration/name/1/car");
        ObjectName objectName = ObjectName.getInstance(":name=gbean,parent="+configurationName+",foo=bar");
        gbeanName = new AbstractName(configurationName, objectName.getKeyPropertyList(), objectName);
        attributeInfo = GBEAN_INFO.getAttribute("attribute");
        referenceInfo = GBEAN_INFO.getReference("reference");
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, "org.apache.geronimo.security.jacc.GeronimoPolicyConfigurationFactory", "org.apache.geronimo.security.jacc.GeronimoPolicy", null, null, null, null);

        Properties options = new Properties();
        options.setProperty("usersURI", "src/test-resources/data/users.properties");
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.