4.6 Summary In this chapter, we discussed the benefits and architecture of managed smart clients. We introduced the OSGi specification and IBM's implementation: the SMF. Through a simple echo example, we demonstrated how to build the bundles, implement required life-cycle methods, import and export packages, expose and consume bundle services, and add UIs to a bundle application. The pizza order example shows how to reduce UI complexity and separate application layers using the available HTTP service. The pizza order application also demonstrates complex application service use and service tracking. In the last section, we briefly introduced the architectures and benefits of mobile gateways implemented over the OSGi platform. |