Package org.rhq.plugins.jbossas.util

Examples of org.rhq.plugins.jbossas.util.JMSConfigurationEditor


        super.getValues(report, requests, "jboss.mq:service=");
    }

    @Override
    public void start(ResourceContext<JBossASServerComponent<?>> context) {
        super.start(context, new JMSConfigurationEditor(context.getResourceType().getName()));
    }
View Full Code Here


        getResourceContext().getPluginConfiguration().put(pluginNameProperty);

        File deployDir = new File(parentResourceComponent.getConfigurationPath() + "/deploy");
        File deploymentFile = new File(deployDir, FileNameUtility.formatFileName(name) + "-jms-service.xml");

        xmlEditor = new JMSConfigurationEditor(resourceTypeName);
        xmlEditor.updateConfiguration(deploymentFile, name, report);
        try {
            parentResourceComponent.deployFile(deploymentFile);
        } catch (Exception e) {
            JBossASServerComponent.setErrorOnCreateResourceReport(report, e.getLocalizedMessage(), e);
View Full Code Here

        LOG.info(testName);

        String topicName = "testTopic";
        File xmlFile = getXmlFile(TEST_FILE_NAME);

        xmlEditor = new JMSConfigurationEditor(JMS_TOPIC);
        Configuration config = xmlEditor.loadConfiguration(xmlFile, topicName);
        assertLoadingOfConfiguration(config, topicName, topicName);
        //Now lets load a queue
    }
View Full Code Here

        LOG.info(testName);

        String topicName = "deleteTopic";
        File xmlFile = getXmlFile(TEST_FILE_NAME);

        xmlEditor = new JMSConfigurationEditor(JMS_TOPIC);
        xmlEditor.deleteComponent(xmlFile, topicName);

        // Until this test only runs once in Maven, keep commented out so it passes, because
        // on the second run it will fail since the first run actually removed it from the file.
        Configuration config = xmlEditor.loadConfiguration(xmlFile, topicName);
View Full Code Here

        ResourceType type1 = new ResourceType("queue", "jbossas", ResourceCategory.SERVICE, null);
        CreateResourceReport createReport1 = new CreateResourceReport(queueName, type1, null, testQueueConfiguration,
            null);
        createReport1.setStatus(CreateResourceStatus.IN_PROGRESS);

        xmlEditor = new JMSConfigurationEditor(JMS_QUEUE);
        xmlEditor.updateConfiguration(xmlFile, queueName, createReport1);

        Configuration config = xmlEditor.loadConfiguration(xmlFile, queueName);
        assert config != null : "configuration object should not be null";

        assertTestConfig(config, queueName);

        String topicName = "createTopic";
        Configuration testTopicConfiguration = createConfiguration(topicName);
        ResourceType type2 = new ResourceType("topic", "jbossas", ResourceCategory.SERVICE, null);
        CreateResourceReport createReport2 = new CreateResourceReport(topicName, type2, null, testTopicConfiguration,
            null);
        createReport2.setStatus(CreateResourceStatus.IN_PROGRESS);

        xmlEditor = new JMSConfigurationEditor(JMS_TOPIC);
        xmlEditor.updateConfiguration(xmlFile, topicName, createReport2);

        config = xmlEditor.loadConfiguration(xmlFile, topicName);
        assert config != null : "configuration object should not be null";
View Full Code Here

        LOG.info(testName);

        String mBeanName = "updateTopic";
        File xmlFile = getXmlFile(TEST_FILE_NAME);

        xmlEditor = new JMSConfigurationEditor(JMS_TOPIC);
        Configuration config = xmlEditor.loadConfiguration(xmlFile, mBeanName);
        assertLoadingOfConfiguration(config, mBeanName, mBeanName);

        assert config != null : "Configuration should not be null loading updateTopic";
        config = createConfiguration(mBeanName);
View Full Code Here

TOP

Related Classes of org.rhq.plugins.jbossas.util.JMSConfigurationEditor

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.