Peter Braswell wrote:
> 
> All,
> Using JBOSS_2.0_FINAL I'm having difficulty casting
> the results of a ejbFind* to my primary key type
> (AccountPK).  I get a 'ClassCastException: $Proxy1'.

Hi Peter,

The find methods return an instance (or instances) of the remote
interface, not the primary key type. So cast to "Account" and your code
will be OK. 

Luke.

-- 
 Luke Taylor.
 PGP Key ID: 0x57E9523C


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to