Skip to main content



      Home
Home » Eclipse Projects » Equinox » Forcing a shutdown of a framework
Forcing a shutdown of a framework [message #130364] Fri, 01 May 2009 14:44 Go to next message
Eclipse UserFriend
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 15:05 Go to previous message
Eclipse UserFriend
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: Tue Jul 08 00:22:43 EDT 2025

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

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

Back to the top