Since Vector is Serializable it should work fine, shouldn't it?
Methinks the problems lies somewhere else ...
-----Original Message-----
From: Marcus Ahnve [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 09, 2000 2:16 AM
To: [EMAIL PROTECTED]
Subject: Re: Return types from Beans
How about an array of strings, String[]?
Regards,
Marcus Ahnve
Sun Java Center
Sun Microsystems AB
Sweden
Shekhar Mahadevan wrote:
> Hi All:
>
> This is probably a trivial question, but...
>
> I tried returning a Vector of Strings from an entity bean, and was
> not successful. I later read a note that said that since this involves
> RMI, I can only use certain return types. (primitives, Serializable-s
> and a special case exception)
>
> If I want to return a sequence of 'n' things, what would be the best way
> to do it? Do I have to create a collection class that implements
> Serializable? I don't want to have to get these Strings individually
> by making multiple network RMI calls.
>
> Help?
>
> -sm <[EMAIL PROTECTED]>
>
>
===========================================================================
> 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".