title: To embed OSGi in servlet container or servlet container in OSGi?
body: <p>I need to reuse code originally developed for an Eclipse RCP app (i.e. boxed as Eclipse plugin/OSGi bundle) in a servlet.</p>
  
  <p>After reading a lot of blog posts, articles, wikis and so on I ended up at the point where I know that:</p>
  
  <ol>
  <li>An OSGi framework (Equinox in my case) can be embedded in a servlet container (Tomcat 7 in my case)</li>
  <li>or Tomcat can be embedded in an OSGi framework.</li>
  </ol>
  
  <p><a href="http://www.eclipse.org/equinox/server/http_quickstart.php" rel="nofollow">Equinox</a> 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?</p>
  
  <p>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?</p>