1 Reply Latest reply on Oct 20, 2008 7:54 AM by Adrian Brock

    What is the point of this ObjectFactory

    Scott Stark Master

      The org.jnp.interfaces.LocalOnlyContextFactory has this ObjectFactory implementation:

       public Object getObjectInstance(Object obj,
       Name name,
       Context nameCtx,
       Hashtable environment)
       throws Exception
       Context ctx = getInitialContext(environment);
       Reference ref = (Reference)obj;
       return ctx.lookup((String)ref.get("URL").getContent());

      at first I thought it was returning the content of the URL found in the reference, but its actually just returning the binding in the root content for the URL name. This is just a LinkRef, no? What is an example of this factory being used?