View RSS Feed

Recent Blogs Posts

  1. Listing the Children of a JNDI Context

    by , 07-07-2012 at 05:13 PM
    One common operation of JNDI is nameís list retrieval of the children. E.g, Enterprise JavaBeans names could be obtained by an application to check if one of them is running or childer names list of InitialContext so that Swing JTree component could be populated. Objectís children names are listed by the help of list() method.
    Java Code:
    NamingEnumeration children = initialContext.list("");
    Javax.naming.NameClassPair objectís javax.naming.NamingEnumeration is returned ...
    Tags: jndi context Add / Edit Tags
    Categories
    Tutorial
  2. Looking Up Objects in a JNDI Context

    by , 07-07-2012 at 05:12 PM
    By name retrieval of an object from naming or directory system is known as looking up object. This is lookup() methodís job. Lookup performance is considered analogous to obtain a friendís number from some phone book by his name. JNDI could be used so that to look up or retrieve EJB components from remote object or application server, from remote ďRMIĒ registry.

    When lookup() is called, childís name is specified of the required context.A java.lang.Object is returned by lookup() which ...
    Tags: jndi context Add / Edit Tags
    Categories
    Tutorial
  3. Introducing the JNDI Context

    by , 07-07-2012 at 05:08 PM
    Names are associated with objects by a naming servie. Association b/w an object and a name is known as binding. Such binding set is known as a context. Name present in one context could possibly be made bound with other context which utilizes similar naming conventions. Bound context is known as subcontext. For instance directory present in a filesystem is those contexts which hold binding b/w objects and filenames which are used for manipulation of files by the system. If a binding is present ...
    Tags: jndi context Add / Edit Tags
    Categories
    Tutorial
  4. JNDI Context and InitialContext

    by , 07-07-2012 at 05:00 PM
    In JNDI, Context interface has a very important and central role. A set of bindings are presented by a context within a naming service in which similar naming convention is being shared. Methods are provided by the context object to bind the names with objects and unbind them from objects and also to list down the bindings.

    Subcontext functionality is also provided by few naming services. This is same as a directory which is present in some filesystem. Basically, subcontext is that ...