Craig wrote:

> One design issue to keep in mind -- you will want to make sure you complete your EJB 
>transactions (if your > EJB session bean is transactional) before returning to the 
>client.  Leaving a transaction open over human-
> interaction
> intervals (seconds to minutes) leads to scalability difficulties, because open 
>transactions consume server-
> side resources while the user is thinking or typing.

Exactly!
If a transaction spans over several client-requests (such as the ShoppingCart) one 
fills a SessionBean with information needed for the transaction and when it is time to 
process transaction (at client-request, or when all information needed is there) one 
performs the transaction in one request.
So Servlets never access Entities which are transactional by definition, they only 
access Sessions.

�������������������������o 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