This content has been marked as final.
Show 2 replies
-
1. Re: Generic findByPrimaryKey method
abrasax Jan 22, 2002 3:21 AM (in response to abrasax)Oh, sorry, the TOMERemote interface is of course the GenRemote interface (I only renamed it for purposes of the post)...
Please, can someone give me advice?
Martin -
2. Re: Generic findByPrimaryKey method
dsundstrom Jan 29, 2002 1:39 PM (in response to abrasax)A finder must return a collection or the exact interface of the entity, so you specifically can't have it return GenRemote. You can use reflection to do this.
Remeber that the EJB spec requires you to PortableRemoteObject.narrow the object returned from the jndi lookup.