users@glassfish.java.net

Re: _at_EJB and the name() attribute

From: Laird Nelson <ljnelson_at_gmail.com>
Date: Fri, 2 Aug 2013 06:51:45 -0700

On Fri, Aug 2, 2013 at 6:49 AM, Laird Nelson <ljnelson_at_gmail.com> wrote:

> So @EJB(name = "java:app/Foo", lookup = "java:app/Bar") is intended to be
> legal?
>
> Dumb, but legal?
>

Prosecution withdraws the question. Of course it's legal: it's defining a
name for this reference ("java:app/Foo") and saying that unless otherwise
specified the container must look for a deployer-bound component for this
"slot" in java:app/Bar.

Best,
Laird

-- 
http://about.me/lairdnelson