That is correct, they should not expose keys.
marc
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Bordet, Simone
> Sent: Wednesday, October 04, 2000 9:31 AM
> To: jBoss Development Mailing List (E-mail)
> Subject: [jBoss-Dev] getPrimaryKey on stateful beans :)
>
>
> Hello,
>
> <LOL>
>
> while working on the caches, I wrote a stateful bean that plays with
> EJBObject calls:
>
> home.remove(bean.getPrimaryKey())
>
> Got tons of stack traces and wondering why I discovered that a hack in
> HomeProxy returned a CacheKey as PK for stateful ( ! ).
> So I read the specs and saw that on session bean both calls
> (home.remove(PK)
> and bean.getPK()) are illegal and should throw RemoteException.
> Man, two errors in a single line of code !
>
> </LOL>
>
> BTW, for FINAL should we be spec compliant on this ?
>
> Regards
>
> Simon
>
>