Sesh:
A good example for a stateful session bean is a shopping cart, IMHO.
The state of the shopping cart is made up of the selections a shopper
makes while shopping at an online store. Only, when the shopper
proceeds to checkout, do we actually transform the shopping cart
into an order.
During the checkout process, we can create appropriate entity beans to
represent
a persistent order. Note that the shopping cart state needs to be preserved
only as
long as the shopper is 'in' the store.
If you were to implement a shopping cart without SFSB, you need to provide
entity beans to cache the in-store selections of a shopper, which IMHO
is not appropriate and very likely less performant and scalable than using
SFSB.
-----Original Message-----
From: Sesh Kumar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 07, 2000 10:13 AM
To: [EMAIL PROTECTED]
Subject: Is it worh to use a SateFullSessionBean
Hi,
I am quite unsure If I should use a StateFullSession thou' I used it. In
my applications I am able to do every thing that I can do with a StateFull
Session Bean using a StateLessSessionBean and an EntityBean. And I have a
feeling that if I use a SFSB it is going to impact the performance. I am
passing the sateinformation to the SLSB to every business method, I know
that if it is a SFSB i can do it using single persistant field(CMP or BMP).
But is it worth to give each client a SFSB to work with. Could some one
provide a good example to prove that I am wrong ..
thank you
sesh.
===========================================================================
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".