WLST to set OAM Load Balancer URL

Found this snippet @ https://community.oracle.com/thread/3744036

[code lang=”python”] domainRuntime() name = ObjectName("oracle.oam", "type", "Config"); writeSig = ["java.lang.String","javax.management.openmbean.CompositeData"] oamHostKey = "DeployedComponent/Server/NGAMServer/Profile/OAMServerProfile/OAMSERVER/serverhost" oamPortKey = "DeployedComponent/Server/NGAMServer/Profile/OAMServerProfile/OAMSERVER/serverport" oamProtKey = "DeployedComponent/Server/NGAMServer/Profile/OAMServerProfile/OAMSERVER/serverprotocol" mbs.invoke(name, "applyStringProperty", [oamHostKey,StringSettings(oamHostKey,"myhostname").toCompositeData(StringSettings.toCompositeType())], writeSig) mbs.invoke(name, "applyStringProperty", [oamPortKey,StringSettings(oamPortKey,"443").toCompositeData(StringSettings.toCompositeType())], writeSig) mbs.invoke(name, "applyStringProperty", [oamProtKey,StringSettings(oamProtKey,"https").toCompositeData(StringSettings.toCompositeType())], writeSig) [/code]

Loading Google+ Comments ...