O'Reilly logo

Special Edition Using Java™ 2 Enterprise Edition by Mark Wutka

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Interfaces

Context

The Context interface represents a set of names in a naming or directory service. The context might represent the entire set of names known to the service or just a subset of names.

addToEnvironment
public Object addToEnvironment(String propName, Object propValue)
    throws NamingException

Adds a new property value to this context's current environment. If the property already exists, the old value is replaced with the new value. The method returns the old value of the property, or null if the property had no previous value.

bind
public void bind(Name name, Object ob) throws NamingException
public void bind(String name, Object ob) throws NamingException

Associates a name with an object in the current naming context. If the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required