01 October 2013

Using getMBean to Navigate Cluster Servers

Just a quick reminder to self on how to e.g. clear and import ADF customization metadata across all cluster servers


 c = getMBean("/Clusters/webapp-cluster")  
    
for s in c.getServers():  
  deleteMetadata("webapp", s.getName(), "/**")  
  purgeMetadata("webapp", s.getName(), 0)  
  importMetadata(application='webapp',server=s.getName(),fromLocation='webapp-customization.mar',remote='true')  
   

No comments: