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
How to invoke ejb from java client?
Explain the concept of connection pooling feature of ejb container?
What are the types of enterprise bean?
Does spring use ejb?
What is Enterprise JavaBeans (EJB)?
Is ejb be called from another ejb? If yes then how?
How does ejb container work?
Explain the concept of local interfaces?
What are the callback annotations for entity bean?
Mention the three levels for applying interceptor methods.
What is mdb in ejb?
How many ejb objects are created for a bean?
Why stateless is better than stateful?
What are stateless functions?
What’s the difference between hibernate and ejb 3? Don’t you think ejb 3 is just a clone of hibernate?