-----Original Message-----
From: John Yu <[EMAIL PROTECTED]>
To: Sean Johnson <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Wednesday, May 31, 2000 12:37 AM
Subject: Re: Questions about the EJB paradigm
>So, I shouldn't model fine-grained business objects as entity beans...
>
>If that's the case, my fine-grained business objects are not (EJB)
components.
>(In MSF, even fine-grained business objects are MSF components. They have
to
>obey the interface contract.) Then, services like CMP are not available to
my
>fine-grained business objects. I have to implement my own persistence
framework
>for my business objects if I don't want DB code entangled in my business
logic.
>Doesn't that defeat the purpose of the EJB architecture and entity beans?
No, you just don't let the fine-grained objects talk in a fine-grained way
to the client. As far as the client is concerned, you wrap them up in a
coarse-grained Session Bean. The fine-grained objects interact with each
other in the server-side code; this is presumably how MSF works too,
otherwise it would have the same problems with inefficient fine-grained
interactions over a network.
----
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".