Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Forcing a shutdown of a framework
Forcing a shutdown of a framework [message #130364] Fri, 01 May 2009 18:44 Go to next message
Charles Godwin is currently offline Charles GodwinFriend
Messages: 57
Registered: July 2009
Member
I am developing a server-side equinox application. It will be acting as a
stand-alone server using jetty. How can I configure the system to
automatically shutdown if the second instance of the application starts
with the same listening port for jetty. I want to handle the problem where
a second framework starts and there's a conflict and it gets this message:

WARNING: Failed to start: SocketListener0@0.0.0.0:8080.

When that happens I want to shutdown the framework with no human
intervention.
Re: Forcing a shutdown of a framework [message #130507 is a reply to message #130364] Sat, 02 May 2009 19:05 Go to previous message
Gunnar Wagenknecht is currently offline Gunnar WagenknechtFriend
Messages: 486
Registered: July 2009
Location: San Francisco ✈ Germany
Senior Member

Charles Godwin schrieb:
> WARNING: Failed to start: SocketListener0@0.0.0.0:8080.
>
> When that happens I want to shutdown the framework with no human
> intervention.

There is no possibility to do this out of the box. What you could do is
write your own application which checks the port before starting Jetty.
If the port is in use already you can simply exit and the framework
shuts down.

-Gunnar

--
Gunnar Wagenknecht
gunnar@wagenknecht.org
http://wagenknecht.org/
Previous Topic:How do I package an equinox server side application
Next Topic:Re: Per-user plugin/dependencies broken between 3.4.1->3.4.2 (and beyond)
Goto Forum:
  


Current Time: Sat Apr 27 03:12:53 GMT 2024

Powered by FUDForum. Page generated in 0.02670 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top