wjw465150 / run-jetty-run

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

if eclipse crash, auto terminate RJR #72

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

Sometimes there's some issue for RJR will still exist after eclipse  
unfortunately shutdown.

In that case , you have to find the javaw.exe in system and terminate it by 
yourself.

There's still a chance to make jetty talk to Eclipse per 30 seconds, 
if eclipse died , Jetty will just stop by itself.

Of course this should be configurable as a run-jetty-run Preference.

Original issue reported on code.google.com by tonylovejava on 9 Jun 2011 at 3:40

GoogleCodeExporter commented 9 years ago

Original comment by tonylovejava on 9 Jun 2011 at 3:40

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago
Commit face1 implementation in r205.

Still need to implement preference part later and test more.

Original comment by tonylovejava on 5 Jul 2011 at 7:28

GoogleCodeExporter commented 9 years ago
Ready since 2011/7/6 , committed in r208 .

Original comment by tonylovejava on 6 Jul 2011 at 9:49

GoogleCodeExporter commented 9 years ago
and bootstrap in r207

Original comment by tonylovejava on 6 Jul 2011 at 9:49

GoogleCodeExporter commented 9 years ago
More details about implementation.

We create a serversocket when RJR start if you enable "Eclipse Listener" 
preference (Default enabled), 
and when you launch every jetty , it's asked polling the Eclipse server every 5 
seconds , if it lost connection , then it will kill itself then.

(So the server might ask you whether you want to allow network connection. )

Why we need this ? 

If you have been using old RJR (1.1?) , there's even no port detect feature ,
sometimes you will find you try to change the source code and restart the 
server,
but it didn't work, why?

Because there's another Jetty instance stay in your system when Eclipse crash 
and you can't find it in Eclipse console view.

It's seldom happened , but once it happened it wasted a lot of time to figure 
it out.

Anyway , it's a configurable feature,
and you are very welcome to provide your opinion.;)

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