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ć, <mladen.adamo...@gmail.com>
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 <behran...@gmail.com>
> 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 <ma...@apache.org> 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/Tomcat.html
> > >
> > > is the closest thing we have but I suspect parts of it are out of date.
> > > 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-unsubscr...@tomcat.apache.org
> > > For additional commands, e-mail: users-h...@tomcat.apache.org
> > >
> > >
> >
>

Reply via email to