Chapter 10. Remote services and the cloud
This chapter covers
In today’s world, it’s almost guaranteed that your machine is networked and the services you use are provided through the internet. Remote communication is essential, and OSGi supports it by means of the OSGi Remote Service specification, which is the subject of this chapter.
We’ll start by examining how to export a service for remote access and conversely how to import a remote service for local consumption. Next, we’ll investigate how the actual transport is realized through the use of distribution providers, highlighting the fact that OSGi doesn’t implement its own transport but rather allows existing transports to be plugged in. Finally, we’ll look into how to negotiate common policies between the exporter and the importer of the remote services, for instance, to make sure that both sides agree on a common set of requirements, such as encryption.