Hello Alexander, 
if you want to use an EJB named Account you should have the following
classes:

- AccountBean (extending EJBUserBean),
- Account (extending EJBUser),
- AccountHome (extending EJBHome, you have to copy all the definitions from
EJBUserHome modifying the return type, and optionally can add other
finders).

This should work with EJBUserManager.
Good luck!

Giustino De Vincentiis
e-mail: [EMAIL PROTECTED]

-----Messaggio originale-----
Da: Alexander Sparkowsky [mailto:[EMAIL PROTECTED]]
Inviato: luned́ 4 dicembre 2000 18.16
A: Orion-Interest
Oggetto: How to use EJBUserManager?


Hi,

I want to use the EJBUserManager to lookup the accounts and created an
extended version of the EJBUser because I need more infos for the account to
hold. I created Account which extends the EJBUser and an AccountHome which
extends EJBUserHome so I'm not able to overwrite the findByPrimaryKey Method
to return Account insteat of EJBUserHome. When starting the orion it gives
me an error that findByPrimaryKey() should return Account insteat of
EJBUserHome.

Can anybody help?

Alexander Sparkowsky
LambdaLogic Informationssysteme GmbH, Berlin, Germany
Tel: +49-30-2936385-0, Fax: +49-30-2936385-0
E-Mail: [EMAIL PROTECTED]


Reply via email to