More on Objects
The early part of today's lesson covered binding objects into a JNDI namespace. To recap, a bound object must implement the Serializable interface, and the object's class file must be available to the JNDI server.
The obvious means of making an object's class file available to the JNDI server is to set the server's class path to include the necessary directory or JAR file. However, this isn't always convenient, and the JNDI specification recognizes this situation and supports dynamic loading of classes when using a directory service.
Loading Classes from a Code Base
Provided the JNDI Service Provider is a Directory Service and that service supports Internet RFC 2713, the JNDI server can obtain necessary class files dynamically ...
Get Sams Teach Yourself J2EE™ in 21 Days 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.