In this post, I’ll show you how to create a simple OSGI-based servlet. Later, we will deploy this servlet to an Amazon EC 2 instance – this should be fun! Update: I updated the code sample to use Declarative Services, as suggested by Jeff and Scott in the comments of this post. After reading this article, please refer to this other post to learn about the changes. First of all, some preliminary st