Hi,
See comments embedded.
Regards.
H�l�ne.
> [EMAIL PROTECTED] wrote:
>
> Can u tell me why code like the following in a Session Bean throws a
> UnmarshalException.
>
> public Enumeration getItems ( )
> throws RemotException {
> Vector items = new Vector ( );
> return items.elements ( );
> }
>
> with the definition in the remote interface
>
> Enumeration getItems ( )
> throws RemoteException;
>
> The error tells me that Vector is not serializable.
Indeed, the return value type for a bussines method of a bean
must be a legal type for RMI, and an argument to, or a return value from,
a remote object can be any object that is serializable.
>
> But if instead of allocating the vector in the Session Bean,
> I call anEntity Bean finder method that allocates the vector
> the same way it does not fault.
In the case of the finder methods, it's work fine because of the
container classes associated to the bean (generated by GenIC).
The finder methods of the generated class (which implements the Home Interface),
return in fact an object which implements not only java.util.Enumeration
but also java.io.Serializable.
>
> Thanks in Advance
--
-=- H�l�ne JOANIN -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
mailto:[EMAIL PROTECTED] http://www.evidian.com
Phone: 33.4.76.29.73.53 Fax: 33.4.76.29.76.00
Download our EJB Server JOnAS at http://www.objectweb.org
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".