users@glassfish.java.net

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

From: Markus KARG <karg_at_quipsy.de>
Date: Fri, 11 Apr 2008 14:33:25 +0200

Dies,

the question targeted in another direction: My EJB 3.0 SLSB doesn't have
any Remote Home Interface, as this is optional in EJB 3.0 SLSBs (it
would be the same always, containing a simple ejbCreate() method,
obviously).

So if I have a EJB 2.1 client that needs to have a EJBHome (I do not
need MySlsbHome, but really only EJBHome, since it wants to call the
default ejbCreate() SLSB initialization) there is no possibility to talk
to the EJB 3.0 SLSB, unless I explicitely add a (more or less useless)
EJB Remote Home interface to my server, right?

Thanks
Markus

Dies Koper schrieb:
> 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
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>


-- 
QUIPSY QUALITY GmbH & Co. KG
Ein Unternehmen der MES-Gruppe
Stuttgarter Strasse 23
D-75179 Pforzheim
Tel: 07231-9189-52
Fax: 07231-9189-59
www.quipsy.de
karg_at_quipsy.de
Registergericht Mannheim HRA 701214
Geschäftsführer: Nils Schroeder
Diese E-Mail enthält persönliche, vertrauliche und vor Weitergabe geschützte Informationen und ist ausschließlich für den vorgesehenen o.g. Empfänger (Adressaten) bestimmt. Falls Sie diese E-Mail versehentlich erhalten haben und nicht der vorgesehene Empfänger sind, bitten wir Sie, die E-Mail und deren Anhänge nicht aufzubewahren, nicht zu vervielfältigen, nicht zu nutzen und nicht weiterzugeben. Bitte informieren Sie uns als Absender über diesen Zustellungsfehler und löschen Sie die E-Mail.