Spring integration with OSGI
Spring provides complete support for OSGI development. The OSGI module support was called Spring OSGI, and it is presently updated with a new set of libraries and versions called Spring Dynamic Modules. A Spring Dynamic Module allows you to write Spring applications on top of an OSGI framework. One of its challenges is to make simple POJOs to seamlessly work with the OSGI framework and to integrate Spring Beans as an OSGI service. Spring Beans can be exported as an OSGI services
<bean name="authorService" class="com.packt.osgi.authorservice.impl.AuthorServiceImpl"/> <osgi:service id="auhtorServiceOsgi" ref="authorService" interface="com.packt.osgi.authorservice.AuthorService"/>
The Spring dynamic programming model provides API programming and Spring Beans are visible across bundles. The Spring dynamic model provides us with the dependency injection across bundles, and with all the support for OSGI from the Spring dynamic service, handling has...