Preface
Modularization is one of great features in the soon-to-be released Java7. OSGi is well known for its Java modularization specification before Java supports modularization in language level. OSGi Alliance founded in 1999, has been supported by many vendors, enterprises and open source groups, especially the main stream Java application servers like Weblogic, Websphere and Glassfish have adopted OSGi, so OSGi have in fact become the modularization standard. Therefore, learning and grasping OSGi will be a necessary technique to realize modularized Java application; even will be the necessary technique like generic programming in learning Java language. Dynamism is another feature of OSGi; its support for dynamism can help developers realize “plug and play”, “hot deployment” and “unplug and unplay” targets.
The Chinese version book named OSGi Principle and Best Practice is earlier than its counterparts of English books. It is intended to provide introductory materials and advanced analysis for the architects and developers who want to develop modularized and dynamic Java systems. The book elaborates how to develop OSGi based modularized and dynamic Java systems starting from OSGi introduction to OSGi framework usage and OSGi framework implementation. I hope to bring my readers a happy OSGi learning experience.
This book as the selected version of OSGi Principle and Best Practice chooses the second and third chapter of the original book combining with some simple program demos and the classical PetStore example to introduce the usage of OSGi framework.
Because of space limit, the mini book only offers segments of these demos, if you need the complete codes, please download from this website: http://china.osgiusers.org.