Can micro services be deployed as jar files?

Viewed 1120

Micro services components/services are suites of independently deployable services which provides its services through HTTP request.

If I talk in terms of java/j2ee, http requests are always handled through servlet. And to deploy the servlet on web/app container, archive packaging has to be war file. So my understanding is archive can not be jar file, it has to be war file. Is that correct ?

Update:-

Its not duplicate of Java war vs. jar - what is the difference? at all. I understand the diff b/w jar vs war that is clear in my post too but this question is asked in context of microservices i.e. whether microservices can deployed as jar also . Please open it for answers.

0 Answers
Related