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
Can you be deported if you are stateless?
What are the different types of ejb?
What is singleton session bean?
Which is more beneficial: Stateful or Stateless Bean?
What are the design principles for ejb?
What is a stateless session?
Does spring use ejb?
Which of the recommended practices to be performed in the ejbpassivate() method of a stateful session bean?
What is remote interface in ejb?
What is ejb client?
Which is more beneficial: CMP or BMP?
why Bean class implements all business method of Remote interface but bean bean class not implements the remote interface
What are the limitations of using local object?
Is soap stateless or stateful?
What is stateless session bean?