Yesterday I attended the SNoUG event in Zurich, Switzerland as a speaker. My session was about servlets, and then especially the OSGi servlets.
I created also sample plugins for a Domino OSGi servlet and a web app for a servlet on other Java servers, like Websphere, Tomcat and JBoss.
In between there is a plugin with shared code which both servlet plugins are using.
Just to show how easy it is to have multiple access points to the same code.
I have put these sample plugins in a GIT repository on Bitbucket, so feel free to use it.