users@glassfish.java.net

Re: Embedded EJBContainer and Embedded Glassfish

From: Marina Vatkina <marina.vatkina_at_oracle.com>
Date: Mon, 16 May 2011 17:17:32 -0700

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