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>