FileDocCategorySizeDatePackage
CNCtxHelper.javaAPI DocGlassfish v2 API2701Fri May 04 22:36:18 BST 2007com.sun.jndi.url.corbaname

CNCtxHelper

public final class CNCtxHelper extends Object
A utility class for calling the package private CNCtx constructor.
author
Rosanna Lee

Fields Summary
Constructors Summary
Methods Summary
public static final javax.naming.ContextgetInstance(org.omg.CORBA.ORB orb, org.omg.CORBA.Object ncref, java.util.Hashtable env)

	if (env != null) {
	    env = (Hashtable) env.clone();
	}

	// Get stringify IOR and put into environment
	String ncrefStr = orb.object_to_string(ncref);

	env.put(Context.PROVIDER_URL, ncrefStr);

	return new CNCtxFactory().getInitialContext(env);