A Java EE 7 application server, and specifically a Servlet 3.1 container should allow us to deploy a WAR file that contains a web application. And a WAR file is essentially a JAR with deployment descriptor (web.xml
) and couple of other elements.
On the other hand, Java 9 introduces a notion of modular JAR file, that is, a JAR with module descriptor (module-info.class
) which makes a module in terms of project Jigsaw.
So, can a WAR file contain a module descriptor as well and make a "modular WAR file"?
Are there already application servers capable of accepting deployment of a "modular WAR file"?
Generally what is the future of servlet containers and WAR files in terms of Java 9 modularity ?