Monday, April 21, 2014

Enable the ClusterConstraints in weblogic server - Oracle SOA Suite 11g

Enable the ClusterConstraints in weblogic server - Oracle SOA Suite 11g :

It is possible to change WebLogic Server’s default deployment behavior for clusters by setting the ClusterConstraintsEnabled option when starting the WebLogic Server domain. The ClusterConstraintsEnabled option enforces strict deployment for all servers configured in a cluster. A deployment to a cluster succeeds only if all members of the cluster are reachable and all can deploy the specified files.

This post will explain the different approaches to change Cluster Constraint.

Through EM console:

Login to EM console 
Right click on soa-infra-->Admiistration-->System MBean browser
Enter com.bea:Name=SOACoreDomain,Type=Domain in the MBean browser filter and click ok


Change the ClusterConstraintEnabled attribute accordingly and click on Apply button


Through Weblogic Admin console:

Login weblogic AdminConsole 
Click on domain name and set the property Enable Cluster Constraints accordingly and Save the changes.


Through WLST script:

ChangeClusterConstraint.py

adminURL='t3://localhost:8000'
adminUserName='weblogic'
adminPassword='welcome1'
connect(adminUserName, adminPassword, adminURL)

edit()
startEdit()

cmo.setClusterConstraintsEnabled(true)

save()
activate()

Execute the script:
cd %WLS_HOME%\common\bin
wlst.sh ChangeClusterConstraint.py


No comments:

Post a Comment