title: Modularizing existing web applications with OSGi
body: <p>I kind of need an advice here.
  I want to modularize my existing Java web applications.<br>
  Tried to do it with maven and it worked somekind.<br>
  I managed to separate service layer in one module ('core') and other two web apps are using that same core module.  </p>
  
  <p>Now I want to try it with OSGi, I want to involve OSGi in modularization so I could use it when needed.<br>
  I have few issues here:<br>
  1. how to modularize any part of my application with OSGi, how to start with it? There are plenty of examples to start with OSGi but none is about doing that in existing application.<br>
  2. how to use it on a tomcat server? I'm aware that I need a OSGi container(Equinox,Apache Felix,..) to use OSGi but how to set Tomcat and OSGi container work together?</p>
  
  <p>If anyone has some advices or can link me to some useful tutorials,<br>
  I would appreciate it very much.  </p>
  
  <p>Thanks in advance,<br>
  Milos.</p>