Examples of ConfigurationFileApplicationRegistry


Examples of org.apache.qpid.server.registry.ConfigurationFileApplicationRegistry

        mainFile.deleteOnExit();
        writeConfigFile(mainFile, false, false, vhostsFile, null);

        // Load config
        ApplicationRegistry.remove();
        ApplicationRegistry reg = new ConfigurationFileApplicationRegistry(mainFile);
        ApplicationRegistry.initialise(reg);

        // Test config
        VirtualHostRegistry virtualHostRegistry = reg.getVirtualHostRegistry();

        assertEquals("Incorrect virtualhost count", 2, virtualHostRegistry.getVirtualHosts().size());
       
        // test topic host
        VirtualHost topicVirtualHost = virtualHostRegistry.getVirtualHost("topic");
View Full Code Here

Examples of org.apache.qpid.server.registry.ConfigurationFileApplicationRegistry

       
        // Load config
        try
        {
            ApplicationRegistry.remove();
            ApplicationRegistry reg = new ConfigurationFileApplicationRegistry(mainFile);
            ApplicationRegistry.initialise(reg);
            fail("Different virtualhost XML configurations not allowed");
        }
        catch (ConfigurationException ce)
        {
View Full Code Here

Examples of org.apache.qpid.server.registry.ConfigurationFileApplicationRegistry

       
        // Load config
        try
        {
            ApplicationRegistry.remove();
            ApplicationRegistry reg = new ConfigurationFileApplicationRegistry(mainFile);
            ApplicationRegistry.initialise(reg);
            fail("Multiple virtualhost XML configurations not allowed");
        }
        catch (ConfigurationException ce)
        {
View Full Code Here

Examples of org.apache.qpid.server.registry.ConfigurationFileApplicationRegistry

        if (System.getProperty("QPID_HOME") == null)                                                                                           
        {
            fail("QPID_HOME not set");
        }

        ConfigurationFileApplicationRegistry config = new ConfigurationFileApplicationRegistry(defaultaclConfigFile);

        ApplicationRegistry.initialise(config, 1);

        TransportConnection.createVMBroker(1);
    }
View Full Code Here

Examples of org.apache.qpid.server.registry.ConfigurationFileApplicationRegistry

            File configFileDirectory = configFile.getParentFile();
            File logConfigFile = new File(configFileDirectory, DEFAULT_LOG_CONFIG_FILENAME);
            configureLogging(logConfigFile, logWatchConfig);
        }

        ConfigurationFileApplicationRegistry config = new ConfigurationFileApplicationRegistry(configFile);


        updateManagementPort(config.getConfiguration(), commandLine.getOptionValue("m"));



        ApplicationRegistry.initialise(config);
View Full Code Here

Examples of org.apache.qpid.server.registry.ConfigurationFileApplicationRegistry

        File logConfigFile = getConfigFile(options.getLogConfigFile(),
                                    BrokerOptions.DEFAULT_LOG_CONFIG_FILE, qpidHome, false);

        configureLogging(logConfigFile, options.getLogWatchFrequency());

        ConfigurationFileApplicationRegistry config = new ConfigurationFileApplicationRegistry(configFile, options.getBundleContext());
        ServerConfiguration serverConfig = config.getConfiguration();
        updateManagementPorts(serverConfig, options.getJmxPortRegistryServer(), options.getJmxPortConnectorServer());

        ApplicationRegistry.initialise(config);

        // We have already loaded the BrokerMessages class by this point so we
        // need to refresh the locale setting incase we had a different value in
        // the configuration.
        BrokerMessages.reload();

        // AR.initialise() sets and removes its own actor so we now need to set the actor
        // for the remainder of the startup, and the default actor if the stack is empty
        CurrentActor.set(new BrokerActor(config.getCompositeStartupMessageLogger()));
        CurrentActor.setDefault(new BrokerActor(config.getRootMessageLogger()));
        GenericActor.setDefaultMessageLogger(config.getRootMessageLogger());

        try
        {
            configureLoggingManagementMBean(logConfigFile, options.getLogWatchFrequency());
View Full Code Here

Examples of org.apache.qpid.server.registry.ConfigurationFileApplicationRegistry

            _devlog.debug("using config file :" + configFile.getAbsolutePath());
        }

        try
        {
            ConfigurationFileApplicationRegistry registry = new ConfigurationFileApplicationRegistry(configFile);

            ApplicationRegistry.remove();

            ApplicationRegistry.initialise(registry);
View Full Code Here

Examples of org.apache.qpid.server.registry.ConfigurationFileApplicationRegistry

        if (System.getProperty("QPID_HOME") == null)                                                                                           
        {
            fail("QPID_HOME not set");
        }

        ConfigurationFileApplicationRegistry config = new ConfigurationFileApplicationRegistry(defaultaclConfigFile);

        // This is a bit evil it should be updated with QPID-1103
        config.getConfiguration().setProperty("management.enabled", "false");

        ApplicationRegistry.initialise(config, 1);

        TransportConnection.createVMBroker(1);
    }
View Full Code Here

Examples of org.apache.qpid.server.registry.ConfigurationFileApplicationRegistry

        if (!_configFile.exists())
        {
            fail("Unable to test without config file:" + _configFile);
        }

        ConfigurationFileApplicationRegistry config = new ConfigurationFileApplicationRegistry(_configFile);

        //Disable management on broker.
        config.getConfiguration().setProperty("management.enabled", "false");

        Configuration testVirtualhost = config.getConfiguration().subset("virtualhosts.virtualhost." + VIRTUALHOST);
        testVirtualhost.setProperty("store.class", "org.apache.qpid.server.store.SlowMessageStore");
        testVirtualhost.setProperty("store.delays.commitTran.post", POST_COMMIT_DELAY);

        startBroker(1, config);
View Full Code Here

Examples of org.apache.qpid.server.registry.ConfigurationFileApplicationRegistry

            File configFileDirectory = configFile.getParentFile();
            File logConfigFile = new File(configFileDirectory, DEFAULT_LOG_CONFIG_FILENAME);
            configureLogging(logConfigFile, logWatchConfig);
        }

        ConfigurationFileApplicationRegistry config = new ConfigurationFileApplicationRegistry(configFile);


        updateManagementPort(config.getConfiguration(), commandLine.getOptionValue("m"));



        ApplicationRegistry.initialise(config);
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.