Search code examples
javapythonweblogicweblogic-10.xwlst

WLST - force stop application


I am currently working with weblogic and the thing is that I deploy several applications on my weblogic server. Sadly, when one of this application fail to deploy for X/Y reason, I just want to force stop this application and to pass to the other one.

I've already looked into the WLST doc and I don't find what I am searching for. Here is the function I use :

stopApplication(applicationName, gracefulProductionToAdmin="true", gracefulIgnoreSessions="true")

It takes about 5 minutes to stop application this way. When I stop application through Administration Console (force stop actually) it takes about 5 seconds to stop application. So is there any way to force stop application through WLST script?

Thanks


Solution

  • Try again without the options. Just the stopApplication(appName).

    This is what the admin console does, kills all existing sessions and drags it to prepared state. You are trying to stop it gradually and hence the delay.

    You had mentioned, "when one of this application fail to deploy for X/Y reason, I just want to force stop this application and to pass to the other one." If an application fails to deploy, you should not have to stop it. If the App runs, its successful correct?