Shekhar,
> 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)
Vectors implement Serializable as per the Java API docs.
> 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.
Maybe it would be better to use an ArrayList, as using a synchronized
collection (ie a Vector) doesn't really make sense if you only want to
pass back a group of data.
----
Daniel Bradby
[EMAIL PROTECTED]