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 ejb javatpoint?

578


What are ejb containers?

554


in EJB diclare the static methods are not?

2923


Enlist the CallBack methods of Entity Bean.

592


Is it legal to have static initializer blocks in ejb?

560






What are the basic and subtypes of enterprise java beans (ejb)?

541


Is functional programming stateless?

531


What is stateless and stateful?

522


Define ACID Properties?

611


How to invoke ejb from java client?

524


What are the types of ejb?

553


Explain the concept of local interfaces?

540


What is session bean?

545


What is the difference between message driven beans and stateless session beans?

525


How to generate ejb stubs in eclipse?

743