Time for action - creating the bookshelf-webapp bundle

Let's start by creating a new project for the bookshelf web application. I've chosen the name bookshelf-webapp. Its project descriptor is very close to the others. For now, just take a copy of one of the others; we'll come back to it in a bit to add the dependencies and slightly modify the bundle plugin configuration.

The artifact identification section will look like:

<groupId>com.packtpub.felix</groupId>
<artifactId>com.packtpub.felix.bookshelf-webapp</artifactId>
<version>1.13.0</version>
<packaging>bundle</packaging>
<name>Bookshelf Web-App</name>

The structure of the code base will contain both Java code and resources. The resources of this WAB will be located under ./src/main/resources/ and are structured as follows:

  • ./: The root of the directory for JSP files
  • ./WEB-INF: For the web application configuration, namely, the web.xml file
  • ./css: For the cascading stylesheets

Let's look at the OSGi configuration and the contents of the simple web.xml file in the next section.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.150.231