ConfigObject instance represents a configuration object in WAS config repository. Object attributes can be accessed using dot-notation.

# retrieving Cell object and printing some of its attributes
cell = getid1('/Cell:/')
print 'Cell name: %s' % cell.name
print 'Cell type: %s' % cell.cellType
# retrieving Server object, then accessing and modifying one attribute
srv = getid1('/Server:wdrServer/')
print 'Original JVM arguments: %s' % srv.processDefinitions[0].jvmEntries[0].genericJvmArguments
srv.processDefinitions[0].jvmEntries[0].genericJvmArguments = '-Xquickstart -Xverbosegclog:/tmp/verbosegc'
print 'New JVM arguments: %s' % srv.processDefinitions[0].jvmEntries[0].genericJvmArguments

ConfigObject can be converted into a string using str function, which may be useful in scripts/solutions which mix WDR and non-WDR code:

cell = getid1('/Cell:/')
print AdminConfig.showAttribute(str(cell), 'name')

Methods