Hi David,
make sure your VO implements serialaizable.( and also your collection class)
I am not sure about arrays. But I used Vector and it's worked with almost
all app servers including JBoss.( any other java.util. COLLECTION CLASSES
that implements io.serializable should also work)
I don't think you need any of these for primitives.
r
vahees
-----Original Message-----
From: David M. Karr <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Friday, August 17, 2001 10:43 AM
Subject: Return Collection (or array) of value objects?
>How do you have a method which returns a Collection (or array) of value
objects
>(non-primitives, user-defined)?
>
>I was able to write a method which returns a single value object, but I
can't
>figure out how to write a method which returns a Collection of them.
>
>Using JBoss, the method returned in the client without error, and it was a
>Collection, but when I got the Iterator and started stepping through it,
the
>first entry wasn't an object of my value object class, but of the class
>"$Proxy2".
>
>--
>===================================================================
>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".
>
>
>
===========================================================================
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".