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?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4182706#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...