In Eclipse I do terminate a launched process using the "Terminate"
button that is associated with the "Console" view.
I recently added a new feature to the DemoApps, that allows to run a new
instance by just launching. It will shutdown any already running instance:
public class DemoAppWicket extends SpringBootServletInitializer {
public static void main(String[] args) {
ThereCanBeOnlyOne.remoteShutdownOthersIfAny(); // <== shutdown
via rest request
SpringApplication.run(new Class[] { DemoAppWicket.class }, args);
}
}
Cheers, Andi
On 27.04.2020 22:57, Dan Haywood wrote:
Andi, you're an Eclipse user... what's your preferred way to run M3 ?
On Mon, 27 Apr 2020 at 19:39, Brian K <[email protected]> wrote:
I've noticed that the HTTP port does not get closed when I terminate an
eclipse launch. Running from a terminal window releases it when I pressed
Ctrl-C. I think it has to do with a Stack Overflow thread [1] that
references an outstanding issue [2].
I suppose running in a server container would fix this. How do you run
this from Eclipse?
Thanks!
Brian
[1] :
https://stackoverflow.com/questions/8814383/sending-sigint-ctrl-c-to-program-running-in-eclipse-console/28624925
[2] : https://bugs.eclipse.org/bugs/show_bug.cgi?id=38016