ZK - Open Source Ajax Java FrameworkZK - Open Source Ajax Java Framework

ZK OSGi - Example which demonstrates how to develop plugin based environment with OSGI

YberCyrus
29 Dec 2011 18:50:40 GMT
29 Dec 2011 18:50:40 GMT

Hi,

I was researching a way to develop a plugin based environment were I could seamlessly add new plugins and remove ones I dont need. By seamlessly I mean that there should be no hardcoded dependencies for host app defining which plugins it should find in various locations, but the host app should automatically discover plugins that are currently available. As of result I stumbled upon an OSGi framework which provided me a necessary functionality (with few modifications in Spring) and much more. Such as: loose-coupling, hot deployment and versioning. Because there is no universal solution for implementing OSGi, bits here and there, such as different implementations for OSGi containers, frameworks, tools and app servers and because there isn't much of a documentation for OSGifing ZK besides few forum threads and blogs I decided to throw together an example in which I demonstrate how to use plugin based approach with OSGi. This example besides ZK uses Spring, Spring DM and Hibernate (Ehcache as second level cache) frameworks. And is designed to be run on EclipseRT Virgo, which is build ground up as an OSGi enabled app server.

Download - README.txt for more information how to setup this example.

I could probably write a smalltalk about ZK and OSGi and explain in greater detail how to OSGify ZK and about my plugin example. But I think I don't have an access to wiki or if I do then I don't know where to start.

vincentjian
30 Dec 2011 05:00:16 GMT
30 Dec 2011 05:00:16 GMT

Hi

Thanks for sharing your ZK and OSGi integration experience.
Please create the wiki account at the bottom of small talks page and check the link to contribute your article.