Methods Summary |
---|
public void | bind(java.lang.String name, java.lang.Object obj)Bind the object to the specified name.
rootContext.bind(name, obj);
|
private boolean | checkAndLoadResource(java.lang.String name)
boolean res = false;
ConnectorRuntime connectorRuntime = ConnectorRuntime.getRuntime();
if(connectorRuntime.isServer()) {
res = connectorRuntime.checkAndLoadResource(name);
}
return res;
|
public javax.naming.Context | createSubcontext(java.lang.String name)Create a subcontext with the specified name.
Context ctx = rootContext.createSubcontext(name);
return ctx;
|
public void | destroySubcontext(java.lang.String name)Destroy the subcontext with the specified name.
rootContext.destroySubcontext(name);
|
public java.util.Hashtable | list()
return rootContext.list();
|
public java.util.Hashtable | list(java.lang.String name)List the contents of the specified context.
Hashtable ne = rootContext.listContext(name);
return ne;
|
public java.lang.Object | lookup(java.lang.String name)Lookup the specified name.
try {
_logger.fine(" SerialContextProviderImpl :: lookup " + name);
Object obj = rootContext.lookup(name);
return obj;
} catch(NamingException ne) {
boolean isLoaded = checkAndLoadResource(name);
_logger.fine("CheckAndLoad Resource of " + name + " was " + isLoaded );
if ( isLoaded ) {
Object i = rootContext.lookup(name);
return i;
}
throw ne;
} catch(Exception e) {
_logger.severe("Exception occurred : " + e.getMessage());
RemoteException re = new RemoteException("", e);
throw re;
}
|
public void | rebind(java.lang.String name, java.lang.Object obj)Rebind the object to the specified name.
rootContext.rebind(name, obj);
|
public void | rename(java.lang.String oldname, java.lang.String newname)Rename the bound object.
rootContext.rename(oldname, newname);
|
public void | unbind(java.lang.String name)Unbind the specified object.
rootContext.unbind(name);
|