Skip to content

Make JAR, not WAR #2634

Open
Open
@ahornace

Description

@ahornace

Recently I watched some videos by Josh Long for Spring Boot where he said the quote "Make JAR, not WAR". He provided some good arguments about why embedded containers are the way to go.

Basically the benefits are that you can have one service-like application and you do not have to worry about the servlet container at all. It makes the deployment of the application far more easier and there would be less issues regarding the Tomcat version just because it would be provided by us.

Disadvantages: if you have multiple applications running, then each of them has its own servlet container.

With Spring Boot it works mostly out of the box. However, I quickly tried this yesterday on OpenGrok and I had some problems with the embedded Tomcat -> I was not able to load the webapps directory from the binary file. Although embedded Jetty seems to support this. I tried following this guide: https://devcenter.heroku.com/articles/create-a-java-web-application-using-embedded-tomcat

This is just a suggestion. So, what do you guys think? :)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions