12.6. JNDI API Reference

There are many classes within the JNDI API set, but for our very basic usage we use only one, the InitialContext class. Only a small selection of the methods are shown in the following API summary.

API 12.17 javax.naming.InitialContext

public class InitialContext implements Context        // All methods are defined in interface Context        public void bind(Name name, Object obj);        public void bind(String name, Object obj);        public NamingEnumeration list(Name name);        public NamingEnumeration list(String name);        public Object lookup(Name name);        public Object lookup(String name);        public void rebind(Name name, Object obj);        public void rebind(String name, Object obj);        public void  ...

Get J2EE™ and JAX™: Developing Web Applications and Web Services now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.