FileDocCategorySizeDatePackage
NamingManager.javaAPI DocGlassfish v2 API4252Fri May 04 22:33:16 BST 2007com.sun.enterprise

NamingManager

public interface NamingManager
The NamingManager provides an interface for various components to use naming functionality. It provides methods for binding and unbinding environment properties, resource and ejb references. It also provides an API to get the current component id.
author
Vivek Nagar

Fields Summary
Constructors Summary
Methods Summary
public java.lang.StringbindObjects(JndiNameEnvironment env)
Enumerates over the list of env props, resource and ejb references and binds them in the java:comp namespace.

public javax.naming.ContextgetInitialContext()
Get the initial context.

public voidpublishObject(java.lang.String name, java.lang.Object obj, boolean rebind)
Publish a name in the naming service.

param
the Object that needs to be bound.
param
the Name that the object is bound as.
param
if operation is a bind or a rebind.
exception
Exception

public voidpublishObject(javax.naming.Name name, java.lang.Object obj, boolean rebind)
Publish a name in the naming service.

param
the Object that needs to be bound.
param
the Name that the object is bound as.
param
if operation is a bind or a rebind.
exception
Exception

public javax.naming.ContextrestoreJavaCompEnvContext(java.lang.String contextName)
Recreate a context for java:comp/env or one of its sub-contexts given the context name.

public voidunbindObjects(JndiNameEnvironment env)
Enumerates over the list of env props, resource and ejb references and unbinds them from the java:comp namespace.

public voidunpublishObject(java.lang.String name)
Remove an object from the naming service.

param
the Name that the object is bound as.
exception
Exception

public voidunpublishObject(javax.naming.Name name)
Remove an object from the naming service.

param
the Name that the object is bound as.
exception
Exception