>>>>> "Selvarajah" == Selvarajah Vahees <[EMAIL PROTECTED]> writes:
David> How do you have a method which returns a Collection (or array) of value
Selvarajah> objects
David> (non-primitives, user-defined)?
David>
David> I was able to write a method which returns a single value object, but I
Selvarajah> can't
David> figure out how to write a method which returns a Collection of them.
David>
David> Using JBoss, the method returned in the client without error, and it was a
David> Collection, but when I got the Iterator and started stepping through it,
Selvarajah> the
David> first entry wasn't an object of my value object class, but of the class
David> "$Proxy2".
Selvarajah> Hi David,
Selvarajah> make sure your VO implements serialaizable.( and also your collection
class)
Selvarajah> I am not sure about arrays. But I used Vector and it's worked with
almost
Selvarajah> all app servers including JBoss.( any other java.util. COLLECTION
CLASSES
Selvarajah> that implements io.serializable should also work)
Selvarajah> I don't think you need any of these for primitives.
I was using "Collection". I just tried changing to "ArrayList", and it had no
effect.
Note that I appear to have no problem getting the object of the collection
class, either "Collection" or "ArrayList", but when I try to pull an object out
of the collection, it is of type "$Proxy2", and not my value object class.
Also note that my value object class implements Serializable.
--
===================================================================
David M. Karr ; Best Consulting
[EMAIL PROTECTED] ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004)
===========================================================================
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".