Skip to content

Instantly share code, notes, and snippets.

@ajitsingh25
ajitsingh25 / create-a-large-jms-cluster-domain.py
Created October 7, 2020 19:48 — forked from samolisov/create-a-large-jms-cluster-domain.py
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')