users@glassfish.java.net

Re: How to get an EJBHome from an injected EJB reference?

From: Dies Koper <dies_at_jp.fujitsu.com>
Date: Fri, 11 Apr 2008 21:27:40 +0900

Hi Markus,

It's in section 3.6.1 Locating a Session Bean’s Home Interface of the
EJB spec (EJB Core):

@EJB CartHome cartHome;

Regards,
Dies

Markus KARG wrote:
> I have code that is using JNDI to lookup an EJBHome.
>
> Now I want to get rid of the deployment descriptor, so I added @EJB
> annotation instead of the JNDI lookup.
>
> But how can I access the EJBHome now?
>
> Thanks
> Markus