"The return type of a create<METHOD> method is the entity bean�s remote interface".
-ejb 1.2 spec 8.3.1
It pays to conform to the conventional usage model of a mature, standard technology to
the extent possible. Chances are that if a design doesn't fit the model, either there
is another technology that is more suitable or the design shouldn't be attempted.
"J. Babu" wrote:
> Hi All,
> Is it allowed to implement ejbCreate method, which takes vector of input
> varible. That looks as follows:
>
> in the AccountHome class
>
> 1. AccountPK ejbCreate( AccountInfo myInfo) throws CreateException,
> RemoteException;
>
> 2. Enumeration ejbCreate( Vector myAccountInfoVect ) throws
> CreateException, RemoteException;
>
> I see that, Home interface allows to create Account Instance many ways, but
> in the above scenario (2), i want to create one ejb object, store all the
> account values into the DB, and send only one remote interface back to the
> client, i.e. enumeration contains only one PK object.
>
> Usage:
> I don't want to create many ejb objects in the pool, and consume
> resources, instead i want to use it as peristent manager.
>
> Alternative way, on my mind:
> Just use one simple Java class, which stores the vector values, but
> i have to write my own transactions, security etc, which i don;t want to.
>
> I looked at ejb 1.0 specification, it doesn't talk about this specific
> scenario. Any thoughts are welcome.
>
> Thank you,
> Babu
>
> The information in this email and in any attachments thereto is confidential
> and may be legally privileged. It is intended solely for the addressee.
> Access to this email by anyone else is unauthorized. If you are not the
> intended recipient, any disclosure, copying, distribution or any action
> taken or omitted to be taken in reliance on it, is prohibited and may be
> unlawful.
>
> ===========================================================================
> 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".
--
Fred Loney
Spirited Software, Inc.
[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".