I need to reuse code originally developed for an Eclipse RCP app (i.e. boxed as Eclipse plugin/OSGi bundle) in a servlet.
After reading a lot of blog posts, articles, wikis and so on I ended up at the point where I know that:
- An OSGi framework (Equinox in my case) can be embedded in a servlet container (Tomcat 7 in my case)
- or Tomcat can be embedded in an OSGi framework.
Equinox recommends the second option as being easier. But for production they recommend 1. I am unsure why. What is really better in which case and why?
I am a quite seasoned Tomcat user, will embedding Tomcat in Equinox change administering it heavily? or in other words, what will be different in Tomcat embedded in Equinox?