Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account

Modularizing existing web applications with OSGi

0

61 views

I kind of need an advice here. I want to modularize my existing Java web applications.
Tried to do it with maven and it worked somekind.
I managed to separate service layer in one module ('core') and other two web apps are using that same core module.

Now I want to try it with OSGi, I want to involve OSGi in modularization so I could use it when needed.
I have few issues here:
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.
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?

If anyone has some advices or can link me to some useful tutorials,
I would appreciate it very much.

Thanks in advance,
Milos.

asked April 7, 2011 8:14 am CDT
posted via StackOverflow

1 Answers

0
 

I'd recommend Spring Dynamic Modules (http://www.springsource.org/osgi). Its advantages are that you don't have to get your hands dirty with all the nasty details of OSGi, and can use it through Spring IOC.

Even if you want to deal with OSGi, it doesn't mean you have to make your existing application OSGi-aware. The two following specifications can help you abstract your components from the OSGi API:

  1. OSGi Declarative Services (see http://www.aqute.biz/Snippets/HelloWorldComponent)
  2. OSGi Blueprint (similar to Spring DM)

Good luck!

answered April 7, 2011 10:46 am CDT

Your answer

Join with account you already have


Sign in with Twitter account
Sign in with Facebook account
Sign in with Google Friend Connect

Preview
Similar questions