And don't forget the PortableRemoteObject.narrow() as you're pulling the
objects out of the collection on the client.

Cheers

-----Original Message-----
From: Victor Langelo
To: [EMAIL PROTECTED]
Sent: 8/17/01 10:38 AM
Subject: Re: Return Collection (or array) of value objects?

Finder methods always return entity beans. And since entity beans are
remote objects you
actually get stubs (or in case of jboss dynamic proxies). If you want
value objects you'll
need to iterate though you're entity beans, get their value objects and
add the value
object to your array list.

--Victor


"David M. Karr" wrote:

>          Collection  scgList  = scgHome.findByClassName(name);
>          result   = new ArrayList(scgList);

========================================================================
===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to