concept Web Applications specification in category osgi

This is an excerpt from Manning's book OSGi in Action: Creating Modular Applications in Java.
There are two main routes into the OSGi framework for web applications: the OSGi HTTP Service specification and the Web Applications specification. The HTTP Service specification is an OSGi Compendium specification. It enables programmatic registration of servlets and static resources. The Web Applications specification is one of the R4.2 Enterprise specifications and defines a web application bundle (WAB). A WAB is a special web archive (WAR) file that supplies OSGi metadata and relies on the OSGi framework’s lifecycle layer to control when its resources are made available. We’ll look at HTTP Service first.
The Web Applications specification allows you to take advantage of OSGi’s module layer to share classes installed elsewhere in the OSGi framework, ensure that you have the correct dependencies installed, and enforce defined module boundaries. You can also use the lifecycle layer to allow dynamic installation, update, and removal of your web application.