users@glassfish.java.net

What to do with ejbHome methods?

From: Markus KARG <karg_at_quipsy.de>
Date: Wed, 16 Apr 2008 14:48:24 +0200

Our existing EJB 2.1 code is calling ejbHome<name> methods that are to
be found in the RemoteHome interface.
Now we want to migrate the EJBs to EJB 3.0, while the client must stay
EJB 2.1 for a while.
So we are using EJB 2.1 Compatibility View (@RemoteHome).
The AdaptedHome declares (as in EJB 2.1) our ejbHome<name> method, just
as before in EJB 2.1 times.
The EJB 3.0 JPA entity is implementing the ejbHome<name> method, just as
before (non-static).
When we are calling our ejbHome<name> method remotely, what will
GlassFish do?
It doesn't have an entity instance at that time.
Will it create an empty instance just for sake of the ejbHome<name> call?
Or do I have to make the ejbHome<name> methods static in the implementation?
Or is it just impossible to use ejbHome<name> methods anymore in the EJB
2.1 Compatibility View?

Thanks
Markus

-- 
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.