How to gracefully shutdown jetty in intelliJ idea 13?

intelliJ idea 13 come with a jetty integration plugin, which can active jetty modules & run jetty's start.jar.
but when using this plugin to development, i found there is no way to shutdown the jetty gracefully.
every time i click close button in run/debug panel, it just kill the jvm rather send stop key to jetty daemon. it is difficult to debug shutdown code in such case.
how can i shutdown jetty gracefully in intelliJ?

BTW: the intelliJ-idea's tomcat integration have no such problems(it can shutdown tomcat gracefully and my shutdown code was invoked).

3 comments
Comment actions Permalink

On the Jetty panel, there are five buttons on the far left at the top:

Run
Stop
Update
Dump Threads
Exit (icon is a door with an arrow pointing to it)

Exit is the one you want to use.

On 6/24/14 6:30 AM, bob wen wrote:

h1. intelliJ idea 13 come with a jetty integration plugin, which can active jetty modules & run jetty's start.jar.
but when using this plugin to development, i found there is no way to shutdown the jetty gracefully.
every time i click close button in run/debug panel, it just kill the jvm rather send stop key to jetty daemon. it is difficult to debug shutdown code in such case.
how can i shutdown jetty gracefully in intelliJ?

>

BTW: the intelliJ-idea's tomcat integration have no such problems(it can shutdown tomcat gracefully and my shutdown code was invoked).

>

---
Original message URL: http://devnet.jetbrains.net/message/5518397#5518397

>

0
Comment actions Permalink

you say "On the Jetty panel", but in my environment, there is no such panel, only application server panel, showing as blow:
https://dl.dropboxusercontent.com/u/89874741/1.jpg
https://dl.dropboxusercontent.com/u/89874741/2.jpg
could you give me more instruct?

0
Comment actions Permalink

Ahh. I'm using a Jetty configuration, which gives a Jetty specific panel
that has the buttons I listed. I'm not familiar with the panel you're
getting.

Sorry about that.

On 6/24/14 5:01 PM, bob wen wrote:

you say "On the Jetty panel", but in my environment, there is no such panel, only application server panel, showing as blow:
  Image:https://dl.dropboxusercontent.com/u/89874741/1.jpg
  Image:https://dl.dropboxusercontent.com/u/89874741/2.jpg
could you give me more instruct?

>

---
Original message URL: http://devnet.jetbrains.net/message/5518428#5518428

>

0

Please sign in to leave a comment.