WebServerIntegration.afterServerStop(...)

The method WebServerIntegration.afterServerStop(...); doesn't seem to be
being called in my plugin. I have the method implemented and a message box
should pop up but it doesn't when I stop the server? Does anyone know why?
I need to be informed when the WebApp is being stopped so that I can
cleanup.

--ekiM


4 comments

the method is called only in case the server was started by IDEA, e.g. when WebServerIntegration.isServerLaunchSupported() returns
true and the corresponding checkbock is set in the WebApp configuration.
What is always called is the afterDebuggerDisconnect() method.

--

Best regards,
Eugene Zhuravlev
JetBrains, Inc, http://www.intellij.com
"Develop with pleasure!"



0

Hm, this doesn't seem to be happening. I'm working on orion webapp support and isServerLaunchSupported does return true (and webapps are enabled), but the afterServerStop method is never called (build 699)

0

Figured it out. afterServerStop doesn't get called if you run the webapp, but does get called if the webapp is debugged. The correct solution I think is for it to be called regardless of whether it's a run or debug configuration

0

Could you please sumbit an SCR for this?

--

Best regards,
Eugene Zhuravlev
JetBrains, Inc, http://www.intellij.com
"Develop with pleasure!"

"Hani Suleiman" <hani@formicary.net> wrote in message news:23730790.1050198328839.JavaMail.javamailuser@localhost...

Figured it out. afterServerStop doesn't get called if you run the webapp, but does get called if the webapp is debugged. The

correct solution I think is for it to be called regardless of whether it's a run or debug configuration


0

Please sign in to leave a comment.