dinsdag 2 april 2013

Stopping all WLS-servers with force=true

Challenge

You want to stop your weblogic-servers with the option force='true'.  This would drastically reduce the time to stop a WLS-server.

Solution

You could change your scripts and add the parameter, but perhaps you don't have control on those scripts.
There is a place where you can add this option, so it will always be taken into account.
In the stopWebLogic.sh-file, located in the bin-directory of your domain (typically user_projects/domains/<domain_name>/bin), replace the following line
echo "shutdown('${SERVER_NAME}','Server', ignoreSessions='true')" >>"shutdown.py"
by
echo "shutdown('${SERVER_NAME}','Server', force='true', ignoreSessions='true')" >>"shutdown.py"

1 opmerking:

  1. BlueHost is one of the best web-hosting company for any hosting plans you need.

    BeantwoordenVerwijderen