Hi,

I have exactly the same problem(find method returns Enumeration).  Did you 
find any solution?

Please post it if you have one.

JMi
==============
On Tue, 30 Jan 2001, you 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?
============
It shouldn't help, but it might be worth trying

MyTablePK pk = (MyTablePK)PortableRemoteObject.narrow( e.nextElement(), 
MyTablePK.class );

and see if it helps.  If there's any CORBA interactions it'd definitely 
help,
but JBoss usually copes without it.

Give it a try, let us know what happens.

Tom

_________________________________________________________________________
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]

Reply via email to