FileDocCategorySizeDatePackage
RemoteBusinessObjectFactory.javaAPI DocGlassfish v2 API2921Fri May 04 22:32:58 BST 2007com.sun.ejb.containers

RemoteBusinessObjectFactory

public class RemoteBusinessObjectFactory extends Object implements ObjectFactory
An object factory to handle Remote EJB 30 business interface reference access.

Fields Summary
static final Logger
_logger
Constructors Summary
Methods Summary
public java.lang.ObjectgetObjectInstance(java.lang.Object obj, javax.naming.Name name, javax.naming.Context nameCtx, java.util.Hashtable env)


        
				      
				     
				        
    

	InitialContext ic = new InitialContext(env);

	Reference ref = (Reference) obj;

	RefAddr refAddr = ref.get("url");

	Object genericRemoteHomeObj = ic.lookup((String) refAddr.getContent());

        String busInterface = ref.getClassName();
        
	return EJBUtils.lookupRemote30BusinessObject(genericRemoteHomeObj,
                                                     busInterface);