I think it would be cool to have an example that showed how to embed
OpenEJB in an OSGi bundle. We may also want/need to supply some
helper code like exporting all EJBs and Resouces as OSGi services.
FWIU, Guillaume already has some of this working in ServiceMix.
On the other hand, I don't think we should use OSGi within OpenEJB.
One of the core values of OpenEJB is it's embedability, and if we make
OSGi core to OpenEJB it would make it difficult to embed into a system
using another modularity framework. I think it is better to maintain
our course of making a simple, tight and modular server, so we can
embed into any system.
-dain
On Mar 8, 2008, at 3:21 AM, Jacek Laskowski wrote:
Hi,
With all the recent hype about OSGi I spent some time reading the
spec...again and was wondering how its features could help openejb
become yet more modular. I could read some articles about web
development with Wicket and OSGi in which Wicket-based app's parts
were OSGi bundles and could be updated at runtime that led me to an
idea for openejb. I'd love hearing your opinion on it. Would it be
feasible, important, nice?
What if OpenEJB supports deploying EJBs as OSGi bundles? Developing
OSGi bundle is so simple with maven-bnd-plugin (in a very rudimentary
scenario: just a couple of new properties in MANIFEST.MF) that one
could develop EJBs with osgi and be able to turn on/off bean classes
at runtime. A OSGi bundle could provide business interfaces whereas
the other modules could provide its implementation. With the help of
OSGi one could easily install/uninstall/update EJBs. I don't think
it's possible in openejb now, isn't it?
Is it worth implementing? Comments greatly appreciated. I think it'd
be great to be working on it as an entry to osgi world.
Jacek
--
Jacek Laskowski
http://www.JacekLaskowski.pl