A simple bookshelf web application

Alright, we're now ready to implement our first servlet. We'll call the bundle bookshelf-servlet and start with version 1.11.0.

Create this new project and configure its POM. This bundle will use iPOJO for the servlet registration.

The following are the required dependencies:

<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
</dependency>
<dependency>
<groupId>com.packtpub.felix</groupId>
<artifactId>com.packtpub.felix.bookshelf-service</artifactId>
<version>1.10.0</version>
</dependency>
<dependency>
<groupId>com.packtpub.felix</groupId>
<artifactId>
com.packtpub.felix.bookshelf-inventory-api</artifactId>
<version>1.5.0</version>
</dependency>
<dependency>
<groupId>com.packtpub.felix</groupId>
<artifactId>com.packtpub.felix.bookshelf-log-api</artifactId>
<version>1.10.0</version>
</dependency>
</dependencies>

Notice the re-use of our log wrapper service.

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

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