8.1. Introduction

Before we introduce DA, let's revisit our overall architectural makeup and zoom in on the details made important by accessing devices on the native platform.

8.1.1. The Software Stack in Device Access

To access physical devices, applications written in the Java programming language need to go through several layers of indirection. Through the JNI, they can talk to the underlying operating system, which can communicate with the hardware through device drivers. Figure 8.1 shows a few possibilities for bundles to access the devices in an OSGi framework.

Figure 8.1. Accessing hardware devices from bundles C1 and C2 before DA enters the picture

A client bundle such as C1 can either interact with a device service provided by bundle ...

Get Programming Open Service Gateways with Java Embedded Server™ Technology now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.