[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[jetty-users] Restarting webapp programmatically?
|
- From: John English <john.foreign@xxxxxxxxx>
- Date: Mon, 18 Jul 2011 17:54:36 +0300
- Delivered-to: jetty-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=wJOU+W/00D2UrztHWDkN/iFdpZYONTFPU3X5L5Sh1ag=; b=aPYRN9sAVqcEvBT/pZahFgDlAIEzPkSJeJ+Iec46PNUzWR74YhAuXmAQlau6c6tKpS NCT+wZUGhujMttq3nEEex6UrOQwdLcX4yvKlgqSvDaenDvC62TDntMzymQKI3XckZPAB IlsQksynF3P76ufccHvrWVqsXKf2sDaVFKMi4=
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11
I have a webapp running on Jetty 7, and I can update it by copying new
class files to WEB-INF/classes and then restarting the server. This can
cause problems if any users are connected at the time. What I'd like to
be able to do is set a flag to ask the webapp to restart and use a
SessionListener to restart the webapp when the last user logs out.
The question is, is there any way to restart either a webapp or Jetty
itself from inside a SessionListener like this?
TIA,
------------------------------------------------------------------------
John English | My old University of Brighton home page is still here:
| http://www.it.brighton.ac.uk/staff/je
------------------------------------------------------------------------