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
What is software architecture of ejb?
Can EJB made to handle multiple transactions?
What is backing bean?
What are the various types of entrepreneur java bean?
What is a stateless session?
Why is ejb used?
Why is ftp stateful?
Is it possible to write two ejb’s that share the same remote and home interfaces, and have different bean classes? If so, what are the advantages/disadvantages?
can u explain about design patterns like singleton,builder,factory
Is udp stateless?
How to import ejb project in eclipse?
Is method overloading allowed in ejb?
What is rmi and ejb in java?
What are the system services of ejb container?
What happens when I change a value in the httpsession from inside an ejb?