users@glassfish.java.net

[gf-users] Re: Handling env-entry application configuration with Glassfish

From: Laird Nelson <ljnelson_at_gmail.com>
Date: Tue, 22 Jul 2014 10:22:08 -0700

On Tue, Jul 22, 2014 at 10:18 AM, Laird Nelson <ljnelson_at_gmail.com> wrote:

> Hi, Lachezar; one thing that perhaps you're getting confused by (as did I,
> once) is that the name attribute of @Resource is not a JNDI lookup, but a
> logical name of a "slot" into which the configured resource will be
> "poured" by the container.
>

Hi; I also wrote a blog entry
<http://lairdnelson.wordpress.com/2013/06/21/how-to-override-an-ejb-reference/>
on this some time back. It wasn't using @Resource, but @EJB—but the
principles are the same.

Best,
Laird

-- 
http://about.me/lairdnelson