explain why we say stateless beans does not maintain
conversation state besides statefull maintains conversation
state. give some examples...

Answer Posted / madhu

We say stateless beans do not maintain state, simply because
it doesn't. Please read below.

As we all know web based interaction is mostly HTTP based
which is a stateless protocol. Statelessness is defined in
simple terms as, does not keep track of previous
conversation. That means, each and every request is
independent of the other.

Stateless or stateful session beans are no exception and
they are HTTP based as well or work in conjunction with such
front end mechanisms (such as JSPs, Servlets, ASPs etc..).
So unless otherwise, we specifically maintain that state,
all the beans would remain stateless.

In the case of Stateful session beans, we maintain it in the
form of parameter value, which is maintained through out the
session.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is use of @postconstruct?

525


Define ejb Create() and EjbPostCreate()?

570


Why do we use ejb?

525


Is state maintained by a Stateless bean?

568


How does the server decide which beans to passivate and activate?

533






can anyone explain me the workflow of EJB.I have developed an app. in WSAD using an example that contains CMP and session bean.But i am not able to understand the basic flow between diffrent packages.

1786


Explain ejbhome and ejbobject in ejb?

595


What is the difference between @requestparam and @pathvariable?

489


What is ejb container in java?

520


What is ejb and how it works?

526


A client wants to preserve the reference to the ejbhome object of an enterprise bean instance and use it later. Which of the following can be serialized for this purpose?

531


What are the key benefits of the ejb technology?

612


Why is ejb needed?

509


Enlist the CallBack methods of Entity Bean.

590


Define Context?

606