xvhfeng / run-jetty-run

Automatically exported from code.google.com/p/run-jetty-run
0 stars 0 forks source link

shutdown issue #64

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Reference to 
http://tapestry.1045711.n5.nabble.com/how-do-you-gracefully-shutdown-run-jetty-r
un-td3252832.html

When you shutdown a server,
need to consider about the hsqldb or something that will depend server.
(logger...etc)

List a issue and check if we could use a better approach to handle this.

Original issue reported on code.google.com by tonylovejava on 26 May 2011 at 1:34

GoogleCodeExporter commented 9 years ago

Original comment by tonylovejava on 30 Jun 2011 at 1:33

GoogleCodeExporter commented 9 years ago

Original comment by tonylovejava on 1 Jul 2011 at 6:22

GoogleCodeExporter commented 9 years ago
I was trying to provide a option to help user overwriting the red square button 
to do the server shutdown feautre , but I fail to handle the "debug" mode.

It kill the JVM directly so I have no chance to prevent the default behavior.; )

So then I try to change , why not we just provide some command to help user 
handle this?

For example , when user type "exit" in the RJR console then we just help them 
to shutdown the server and terminate , that's enough in the case I think.

So we provide some command below,

"q", "exit", "quit"  : shutdown the server
"r", "restart"       : restart the server (Just like what we did in source 
scanner)

It's ready since 2011/7/6 , committed in r207,
also it's very welcome to provide your opinion on this part. ;)

Original comment by tonylovejava on 6 Jul 2011 at 10:27

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Any update on when we'll see this delivered?  This really is a pretty critical 
feature.

Original comment by robertku...@gmail.com on 23 May 2012 at 11:10

GoogleCodeExporter commented 9 years ago
It has been committed. I was wondering the same thing, googled it, and found 
this thread. as stated in comment 3 above, you just switch to the Eclipse 
Console while Jetty is running, then type in a "q" and hit enter to stop jetty.

Original comment by br...@lashpoint.com on 29 May 2012 at 3:57

GoogleCodeExporter commented 9 years ago
I guess I should have tried that before I put Comment 5 out there.  I found 
that this does indeed work like a champ in the Run Jetty Run Feature (Require) 
at 1.3.3.201203161919.  This is one very useful plug-in.

Original comment by robertku...@gmail.com on 29 May 2012 at 7:54

GoogleCodeExporter commented 9 years ago
My bad , I was updating another issue. ;)

This feature is aleady ready in 1.3 , 
so let me know if it's still a bug or issue. :)

Original comment by tonylovejava on 30 May 2012 at 9:33