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 are the key features of the ejb technology?

583


What are the advantages of ejb components?

560


TX operation funtion executed by?

2205


How to find ejb version in websphere?

541


What is ejb in java with example?

512






What is @injectmock?

521


What are ejbs used for?

499


What is difference between ejb and spring?

513


How to determine, that beans are TX or not?

1625


What are the limitations of using local object?

537


How to increase ejb transaction timeout in weblogic?

549


How to invoke ejb from java client?

514


What is enterprise bean?

592


Enlist the contents of Container.

580


What is dependency injection in ejb?

534