Hi
I think I am missing something!!. I am using WLS5.0 (EJB1.1) and I am able
to return any type of java object from it--- but the objects contain public
fields only. I can send then from a client to session bean and from session
bean to client --- so why should anyone have any problem sending a Vector???
or is there any restrictions in the return types from entity beans which are
not there in session beans!!!
TIA
Anamitra

-----Original Message-----
From: Marcus Ahnve [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 09, 2000 3: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".

Reply via email to