From users-return-268807-archive-asf-public=cust-asf.ponee.io@tomcat.apache.org Mon Nov 25 20:56:44 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id B9294180607 for ; Mon, 25 Nov 2019 21:56:43 +0100 (CET) Received: (qmail 14655 invoked by uid 500); 25 Nov 2019 20:56:40 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 14644 invoked by uid 99); 25 Nov 2019 20:56:40 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Nov 2019 20:56:40 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 7ABC0C03B3 for ; Mon, 25 Nov 2019 20:56:39 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.018 X-Spam-Level: X-Spam-Status: No, score=-0.018 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.019, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-ec2-va.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id I4YmA7JYIGLN for ; Mon, 25 Nov 2019 20:56:38 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.208.68; helo=mail-ed1-f68.google.com; envelope-from=behrangsa@gmail.com; receiver= Received: from mail-ed1-f68.google.com (mail-ed1-f68.google.com [209.85.208.68]) by mx1-ec2-va.apache.org (ASF Mail Server at mx1-ec2-va.apache.org) with ESMTPS id CE53FBC530 for ; Mon, 25 Nov 2019 20:56:37 +0000 (UTC) Received: by mail-ed1-f68.google.com with SMTP id f7so14080346edq.3 for ; Mon, 25 Nov 2019 12:56:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=QXufx4iwGt2hT+ArhAqYKclICbqG5aseqi5VN0Bg8c8=; b=sa/A+tJ9ku/wzz63MjAwHb2KpDVG3jJpALCyoGVbUeAZT1X8YQVVxsSslbfoXjyHk4 KpheC3g3/WM+O59DZ9YWDrIGo6J1+N6tB3CIeCvJhpWdAh2pUExJdNB7o77Bj6HTxfVW smZiQnYFX8VU8KGijk8CPyP3vvJJArgxFVaqdEFPCOVwmPJftIIHcWXNgtdr1bzQWbyA 2vOjaJZdA36hzqU9sFZkMWgWOxACfb9i07hFhPLJGv0loqlwzUvaL+MPjoid7JlJOCiT wi2mv+c4tZMQN0XQSGm3Axc9cy0werMnVDp1zwlTSAXdj4J1mGGQFF34r6Kk5mVXKmOW YaFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=QXufx4iwGt2hT+ArhAqYKclICbqG5aseqi5VN0Bg8c8=; b=B3qsHNINju6ZUTfeMOJS+t0FJ8lonyiG0wIiDkVS/E/zlZwESsX8ZPVfpAs89+dSGI X+ENUMZXj9QiOgkP12oLUwXOvAOds2N6aCTCAyg48hHGVx1AMlCukY+F6zODF9evagQS MuUtm/jghzotligR55d+kcA0N9ktM8a+24dZ28cVnGqfX8h9VszxPVwmxreQ6bnul66B Q+JFBUzasCxJWF5Dc7/piYzLBBHyWOandttp/QLNlVo1QQD46Pe/2GJpEVFc0Ewk7Gnp opPvqauZwI+LhCpPEfK0Hsg5HUO24qLaQQxWSBcFbIQT30czqnT38ymAVA0WE17tAJ2a RIZg== X-Gm-Message-State: APjAAAXb4nMOO0wD6YUmEOCElqkQROE5t6CMiJHt8CqNHWcBcsZwCMRG kMxXulTXDG6pVkPEJZ/SQEkE7YLgArqJwdcrSre2VE8R X-Google-Smtp-Source: APXvYqywmuNFMeDQhbT2lPP6/GKg28e2k4iscCDjRiua3HCpV0bvyE/cmmma0hi8bzDzb6cE28680PG0YGBo97bdb4I= X-Received: by 2002:a17:906:751:: with SMTP id z17mr38729955ejb.313.1574715396465; Mon, 25 Nov 2019 12:56:36 -0800 (PST) MIME-Version: 1.0 References: <5654ec77-34e2-765c-50e7-db795ac15807@apache.org> In-Reply-To: From: Behrang Saeedzadeh Date: Tue, 26 Nov 2019 07:56:24 +1100 Message-ID: Subject: Re: Official documentation for running an embedded Tomcat server To: Tomcat Users List Content-Type: multipart/alternative; boundary="000000000000d42aaf059831ff0f" --000000000000d42aaf059831ff0f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable For an example use case, see Spring Boot. It can use an embedded Tomcat and build an executable Uber Jar. Then you can start your Web app by running java -jar app.jar. On Tue, 26 Nov. 2019, 2:29 am Mladen Adamovi=C4=87, wrote: > I wonder why somebody would want to run "embedded Tomcat" and what it > actually means? > I'm working professionally in software engineering since 2003 and I'm > puzzled. > > From looking into that article, it seems that Java app starts Tomcat, why > somebody would want that? > > > On Sun, Nov 24, 2019 at 12:27 AM Behrang Saeedzadeh > wrote: > > > I will create a PR if I find the time to write one. > > > > On Sat, Nov 23, 2019 at 9:40 PM Mark Thomas wrote: > > > > > On 23/11/2019 08:17, Behrang Saeedzadeh wrote: > > > > Hi all, > > > > > > > > Are there any official docs for how to run Tomcat as an embedded > > server? > > > > Searching returns some results such as > > > > > > > > > > https://devcenter.heroku.com/articles/create-a-java-web-application-using= -embedded-tomcat > > > > but I haven't seen any official docs. > > > > > > > > Are there any? > > > > > > > > > http://tomcat.apache.org/tomcat-9.0-doc/api/org/apache/catalina/startup/T= omcat.html > > > > > > is the closest thing we have but I suspect parts of it are out of dat= e. > > > The unit tests are a good source of samples of how to use it. > > > > > > Care to contribute a how-to page for the docs? > > > > > > Mark > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > > > For additional commands, e-mail: users-help@tomcat.apache.org > > > > > > > > > --000000000000d42aaf059831ff0f--