View RSS Feed

JNDI

Java Naming and Directory Interface (JNDI) tutorials and examples.

  1. Binding JNDI Objects

    by , 07-07-2012 at 04:17 PM
    Subordinates of Context are stored as Binding objects set. Binding is basically an association present b/w objects and name. Hence it has already been observed that Binding objects hold its name, object and its class. A newer Binding could be added to Context along with thebind() method. E.g, Addition of binding could be done to already existing Context as following:

    Java Code:
    java.io.File newfile = java.io.File("c:\temp\newfile");
    tempContext.bind("newfile",
    ...
    Categories
    Tutorial