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

4 comments

Hello Andre,

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 ???)


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!"


0

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

0

Hello Andre,

Is there any example? I have two jars (startup.jar and shutdown.jar)
and I need to use them to start/stop the aplication...


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!"


0

Please sign in to leave a comment.