concept other word in category osgi

appears as: other words
OSGi in Depth

This is an excerpt from Manning's book OSGi in Depth.

The first problem is portability. We need a single programming platform that abstracts the application from the underlying operating system and the hardware. In other words, we need a virtual machine. Does anything come to your mind? Yes, of course. Let’s use Java to solve our first problem.

A naming service is a service that can be used to associate a name with an object. Perhaps without realizing it, you’ve likely used this concept already. Anytime you type a web address, such as www.manning.com, into a browser, the browser is using a naming service called DNS (Domain Name System) to convert this URL string to an actual IP address. In this case, the URL is the name, and the IP address is the object bound to it. A naming service Name must support hierarchies. In the example shown in figure 9.2, the component "manning" is under the component "com", which is the root for commercial entities. In other words, a JNDI name is made of individual components. An name that has more than a single component is called a compound name.

Consider the following JNDI name of "www.manning.com/Books/OSGiInDepth.pdf". As you’ve seen, the initial part of "www.manning.com" maps into a manning subcontext related to a DNS naming service. But following that, the "Books" component represents a folder in a filesystem, and "OSGiInDepth.pdf" a file within that. In other words, we’re crossing over from one naming convention to another. JNDI gracefully and transparently handles this by returning the appropriate File object when the name "www.manning.com/Books/OSGiInDepth.pdf" is looked up using the JNDI context. The JNDI provider accomplishes this by following a pointer object from one naming service to the next naming service. This pointer, or Reference, as it’s called, is reached when the component name separator of / is found.

A JNDI name that includes components from more than one naming service or directory service is called a composite name, as opposed to a compound name. In other words, a composite name is federated, as illustrated in figure 9.4.