users@glassfish.java.net

Re: Embedded EJBContainer and Embedded Glassfish

From: Laird Nelson <ljnelson_at_gmail.com>
Date: Mon, 16 May 2011 20:51:15 -0400

Right. javax.ejb.EJBContainer fulfills the (very very) narrow specification
requirements in the EJB specification.

Embedded Glassfish gives you the whole Glassfish server running in a single
classloader.

Best,
Laird

On Mon, May 16, 2011 at 8:17 PM, Marina Vatkina
<marina.vatkina_at_oracle.com>wrote:

> You can either access Embedded Glassfish's EBJContainer via standard EJB
> embedded API (which you are already using), or try GlassFish-specific API
> that starts GlassFish in embedded mode (using GlassFish embedded API that
> Liard mentioned).
>
> -marina
>
>
> emiddio-frontier wrote:
>
>> I am confused -- I can make use of Embedded EBJContainer , and have.
>> --
>> But how can I make use of Embedded Glassfish, and deploy an EJB and
>> then get access to the context so i can lookup an EJB and invoke its
>> methods?
>>
>> Is there a way to get access the the Embedded Glassfish's EJB Container ?
>>
>> Or -- am I completely confused as to the purpose of Embedded Glassfish vs
>> Embedded
>> EJBContainer ?
>>
>> thanks
>>
>