|
Java™ by example!
|
|
|
How do I retrieve a Java object from a file on the local file system using JDNI?
You can bind an object into a context, provided your object is a Reference or implements the Referenceable interface. The object is stored in a file called .bindings as a set of properties. The following example shows how to read the object created in the QA How do I store a Java object in a file on the local file system using JNDI?. Read.java:
prints out:
Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|