We are not going to run our service on Eclipse. We would like to deploy it on a server. There are two options for doing this:
- Create a WAR and deploy it in Tomcat or any other web container. This is the traditional method.
- Create a JAR with the runtime (Tomcat) included so that you just need Java to execute the service.
In cloud application development, the second option, also called fat JAR or uber JAR, is becoming popular for the following reasons:
- The deployable is self-contained with all the dependencies it needs. This reduces the chances of environment mismatch as the deployable unit is deployed to Dev, Test, UAT, and Production. If it works in development, there is a good chance it will work across all the other ...