here's my problem. I have a server that is started inside Eclipse, so the process is always running until I kill it.
If I want to execute a clean shutdown, I can write "shutdown" directly in the eclipse console and press enter. I need a clean shutdown (and not just a taskkill) because the server is supposed to send a snmp trap before it closes.
What I want to know is, is it possible that the "shutdown" could be written in the console as an input directly from a java method (stopServer())?
This is for tests purpose and it has to be automated. And there is no possibility to write a script that would do that.
Thank you.