dev@glassfish.java.net

Re: Javamail/JNDI help?

From: Bill Shannon <bill.shannon_at_sun.com>
Date: Wed, 20 Jun 2007 15:34:18 -0700

Sahoo's answer should help you get your app working, but I just wanted
to point out the concept that I think you missed. There are two types
of JNDI names - local and global. An application typically uses local
JNDI names. The names need be unique only within a single component.

The admin console and commands create JNDI resources using a global name.

There are several ways to define the mapping from local JNDI name to
global JNDI name. The easiest are the ways Sahoo described, using the
various "mapped name" elements.