what is the difference between stateless and stateful
sessions?
Answer Posted / buddheshwar ojha
BY rahul ojha
A stateful session bean maintains state between client and the statefulbean for a duration of time and once state is end it end session completely it also maintains data persistency(database).(Shoping card etc...)
A stateless session bean does not maintain conversation state for a longer time Instance variables used by a method of a stateless bean may have a state, but only for the duration of the method invocation. After a method has finished running either successfully or unsuccessfully, the states of all its instance variables are dropped.(HTTP , telephone line conversation etc...).
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How does the server decide which beans to passivate and activate?
Why do we use @requestmapping?
How to generate ejb stubs in eclipse?
What are ejb containers?
TX operation funtion executed by?
What are the differences between ejb 3.0 and ejb 2.0?
Differentiate Phantom from Un-repeatable?
What is an ejb platform?
What are the design principles for ejb?
What are the different kind of ejb's?
What is the meaning of acid in the connection of transaction management?
What is ejb and why it is used?
What is entity beans in ejb with example?
Name the attributes of javax.ejb.ejb.
What is the use of @resource?