Dear All,
I need more explanation on  returning of an Enumerations from a Entity EJB
finder method. As far i know from RMI experience is that you cant return a type
which does not implement "Serializable" interface So every returning type should
be serializable. Now when i see at Entity EJB finder standards, it is saying
that we can ONLY have Enumeration  or Collection  (Not a serializable
interfaces) as the return types. And it also says that the underlying mechanism
for the communication is RMI. In RMI,  reference can ONLY be passed for a remote
type (implementing the remote interface). What is exactly going on ? I do know
every EJB object is also remote type. I have two problems:


   I return an enumeration (by reference) of Entity Beans in a function namely
   ejbFindAllCustomers, but what happens ? Enumeration is not a Serializable
   interface?
   I need to return the enumeration by value? I dont want to have a helper
   Session EJB (converts the Enumeration into vector). and my client need to
   play (only read) with the Objects residing in the Enumeration  locally? How
   can i do it with the existing standards?



Fareed

_________________________________________________________________________

Disclaimer:

"Any  unauthorized  form of reproduction of this message is strictly prohibited.
The  bank  does  not  guarantee  the  security of any information electronically
transmitted  and  is  not liable for the proper and complete transmission of the
information  contained  in this communication, nor for any delay in its receipt.
THE  USE  OF  EMAIL  FOR  ANY  ILLEGAL  PURPOSE OR FOR ANY PURPOSE OTHER THAN AS
PERMITTED  BY  THE  BANK  IS  STRICTLY  PROHIBITED  AND  SUCH  USE MAY RESULT IN
DISCIPLINARY AND LEGAL ACTION."

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