Skip to content

Instantly share code, notes, and snippets.

View samolisov's full-sized avatar

Pavel Samolysov samolisov

  • Huawei
  • Moscow/Russia
View GitHub Profile
@samolisov
samolisov / create-a-large-jms-cluster-domain.py
Created October 31, 2017 14:48
Usable WLST scripts for every day WebLogic Application Server administration
#Conditionally import wlstModule only when script is executed with jython
if __name__ == '__main__':
from wlstModule import *#@UnusedWildImport
def configureCluster(clusterName, isUnicast):
cluster = getMBean('/Clusters/' + clusterName)
if cluster == None:
print 'Creating cluster ' + clusterName
cluster = create(clusterName, 'Cluster')