It isn't a matter of session vs entity. There is business logic that
should be put in entity and other that should be put in session. For
example, you may have an entity bean representing bank accounts. You may
have the business logic for deposits and withdraws in this entity (you
must control that nobody withdraws more money than than the account has)
and put business logic for money transfers in a session that could talk
to two entities representing the two accounts.

Chawla, Girish wrote:

> Is it good to have Business Logic in an Entity Bean or is it better to have
> business Logic in
> a Session Bean which calls an Entity Bean for Data Access only?
>
> ===========================================================================
> 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