Stopping a runner
Hi all,
I need to use specific parameters to start my application, so I implemented a JavaProgramRunner (Startup.java). Now I need to stop it. How to do this (stop an application passing parameters)? have I to implement another runner? (Shutdown.java ???)
Thanks,
Andre
Please sign in to leave a comment.
Hello Andre,
No, you will need to override OSProcessHandler.destroyProcessImpl() to run
your shutdown executable.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Thanks Dmitry!
Is there any example? I have two jars (startup.jar and shutdown.jar) and I need to use them to start/stop the aplication...
Regards,
Andre
Hello Andre,
Not directly. If you're building an application server integration, you can
look at the code of the Tomcat plugin to see how Tomcat does that, but there's
a lot of intermediate layers that are used there.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Thanks!