Hello!

I need to enable the log events for a lot of JBossAS5 resources. This task is boring and takes a long time to finish if you do it manually through RHQ UI. So I'm trying to do this via rhq-cli. how can I update a JBossAS5 resource's configuration using the RHQ Remote/Domain API?

I'm trying using a JS script like this:

var serverJBoss = ProxyFactory.getResource(<resource ID>);
var mapJBossConfig = serverJBoss.pluginConfiguration.getMap().get("logEventSources").getList().get(0).getMap();

This return a java.util.Map holding the PropertySimple's objects like this:

{enabled=PropertySimple[id=345369, name=enabled, value=false, override=null], logFilePath=PropertySimple[id=345368, name=logFilePath, value=/u01/app/jboss/jboss-4.2.2.GA/server/defaul/log/server.log, override=null], includesPattern=PropertySimple[id=345371, name=includesPattern, value=null, override=null], minimumSeverity=PropertySimple[id=345372, name=minimumSeverity, value=null, override=null], dateFormat=PropertySimple[id=345370, name=dateFormat, value=null, override=null]}

After update these ProperySimple's objs how can I update the Resource's Configuration on Server? Can someone help me?

Thanks!
____________________________
Rafael Torres Coelho Soares
rafaelcba@gmail.com
http://rafaeltuelho.wordpress.com
Brasília - DF - Brasil