Hey people,

On the client side you will receive an Enumeration of the bean's remote
interfaces, not of its PK !

HTH,

Simon

> -----Original Message-----
> From: Jean-Michel DELSAUX [mailto:[EMAIL PROTECTED]]
> Sent: martedi 30 gennaio 2001 9:12
> To: [EMAIL PROTECTED]
> Subject: Re: [jBoss-User] Re: ClassCastException on
> SerializableEnumeration
> 
> 
> OK Todd but... what are the changes?????
> 
> Can you post a solution?
> 
> thanks.
> 
> JMi
> 
> 
> ----Original Message Follows----
> Silly me, I just read the spec and realized my mistake, that 
> the container
> converts the PK's to remote interfaces.
> 
> -Todd
> 
> On Mon, 29 Jan 2001, Todd Huss wrote:
> 
>  > I have a BMP entity bean with a finder method that returns 
> an Enumeration
>  > of Primary Key objects. On the bean side I can even check 
> the Enumeration
>  > and see that it really is an enumeration of PK objects by doing a
>  > pk.getClass().getName() on each pk object.
>  >
>  > On the client side though, I get the enumeration back and 
> begin to call
>  > "MyTablePK pk = (MyTablePK)e.nextElement();" but 
> immediately get a class
>  > cast exception. I changed the code to do a 
> getClass().getName() on the
>  > objects in the enumeration and they are no longer 
> MyTablePK objects on 
> the
>  > client side but rather $Proxy1, $Proxy2, etc...
>  >
>  > Any suggestions or ideas?
>  >
>  > Thanks,
>  > Todd
>  >
>  >
>  >
>  >
> 
> 
> 
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> List Help?:          [EMAIL PROTECTED]
> 
> 
> ______________________________________________________________
> ___________
> Get Your Private, Free E-mail from MSN Hotmail at 
http://www.hotmail.com.



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


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

Reply via email to