Package org.rhq.core.clientapi.agent.configuration

Examples of org.rhq.core.clientapi.agent.configuration.ConfigurationAgentService.updateResourceConfiguration()


        //configuration = configuration.deepCopy();
        configuration.put(new PropertySimple("jndi-name", "TestDS"));
        configuration.put(new PropertySimple("max-pool-size", "100"));
        ConfigurationUpdateRequest cur = new ConfigurationUpdateRequest(0, configuration, defaultDs.getId());

        configService.updateResourceConfiguration(cur);

        // Verify changes are in place
        configuration = configService.loadResourceConfiguration(defaultDs.getId());

        assert configuration.getSimple("jndi-name").getStringValue().equals("TestDS") : "Updated property jndiName was incorrect";
View Full Code Here


        assert configuration.getSimple("max-pool-size").getStringValue().equals("100") : "Updated property max-pool-size was incorrect";
        // Rollback changes (find a better way of doing this)
        configuration.put(new PropertySimple("jndi-name", "DefaultDS"));
        configuration.put(new PropertySimple("max-pool-size", "20"));
        cur.setConfiguration(configuration);
        configService.updateResourceConfiguration(cur);
    }

    public void testCreateDataSourceService()
            throws Exception
    {
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.