What is Ferris Naming

This is the Ferris Naming project. The purpose of this project is to provide basic utilities which enhance or extend the capabilities of the objects already in the JDK javax.naming package.

Ferris Naming should stay relatively small. A lot of functionality already exists either in the JDK itself or in a Jakarta Commons package somewhere.



This is a simple implementation of the Context interface. This Object can be used if your Objects use InitialContext to lookup a resource. This Object is great for testing outside of an EE container and for reusing code in a stand-alone application which was originally developed for an EE container. Here is an examples

// Use the factory to initialize the context.
// Get InitialContext like you normally would,     
InitialContext ctx = new InitialContext();

// Bind an object to the context.
ctx.bind("java:comp/env/jdbc/fs_web", "hello world");

// Lookup an object from the context by absolute value
Object o = ctx.lookup("java:comp/env/jdbc/fs_web");

// Or, lookup an object by context
Object o = ((Context)ctx.lookup("java:comp/env/jdbc/")).lookup("fs_web");