Vector (and most other collections you will come across) is
serializable, so you should be able to get back a Vector from an entity
bean.

arkin

> > 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".

--
----------------------------------------------------------------------
Assaf Arkin                                           www.exoffice.com
CTO, Exoffice Technologies, Inc.                        www.exolab.org

===========================================================================
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