Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] ServletContextListener defers server start
  • From: Dirk Olmes <dirk.olmes@xxxxxxxxxx>
  • Date: Fri, 4 Oct 2019 14:02:24 +0000
  • Accept-language: de-DE, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=exentra.de; dmarc=pass action=none header.from=exentra.de; dkim=pass header.d=exentra.de; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=W0qQdJmYX2fpLj6vG8zbEqnul5vcUvinhERCeVfH8W0=; b=GZmcKmGeFhwJn1Lir+d1U+gcT45WxD/o7Iwe3lWhzn7zsU4Xb+jd46X2T9dqTmnrpipgYcMs9P4IvxAwsmuSSnIH2g0+X3woG0Qq7YRqk3UzfvIgATyUtc4hcqEvOHj9qq0NylZ0RHTGWVucipOEe/xRWNv5+IV0FD6ImQh1A8YsxSaJIj45btHpx+A4ClwZGkdAjOQR8dRrtB828/umpBYdRa74FH+Pm2qxM8/xcAWcP/NEQ4Va1Jz1rtWj+QQEk9U9byDR2xpb1BOUAv7uzqbvyuromPDi3lB75nNcMRx2rD90N7XluyoIrEXCltu/8hPGC02iq3fl4Tced6JXUA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QQmr5UyRfy4go7BXWQoiY4KZyZy8Rzv16czuPGPKqFDHOK3Uejx/BTzE8uolk0vQckANuwlkhTJHQR88brYWAm/kqmXIgfyymsNDGUlPno5C4o+fKCKLyfNOxVV09RbAPUS5sHQcxR9BIOW6AuncCrWiXWFAC3QRkVB+2MZjtVzgTKeD5NuAk80Rnz8P183fkic5HmkHZqUP9rMikd9+2Jwfi5qIvaK9N0VwldQx/mIisZwhk2kSLbLZBJ1hIwrp1K7uArllADVjAgF//SKHlNeoeSrtyLQTs7XT6GTto3fA4z32A5AJSfXvFs2KRTSGXm6uByQNXklG+wRDAlLr9w==
  • Delivered-to: jetty-users@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/jetty-users>
  • List-help: <mailto:jetty-users-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/jetty-users>, <mailto:jetty-users-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/jetty-users>, <mailto:jetty-users-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHVerxZBizhwXtjjkG6oN7a0DkMDg==
  • Thread-topic: ServletContextListener defers server start

Hi,

I'm using an embedded Jetty to set up a servlet context. My code looks
quite similar to what's in the "Embedding ServletContexts" section of
the "Embedding Jetty" chapter of the Jetty docs.

I noticed that the server (more correctly the ServerConnector) won't be
ready to accept connections unless my servlets have started up. Now I
have a ServletContextListener that takes a long time to start up.

Would it be possible to configure Jetty in such a way that it already
accepts connections and answers e.g. with a 503 status until the servlet
context is finally up and running?

-dirk


Back to the top