what is the difference between stateless and stateful
sessions?

Answer Posted / rajshekaran pillai

In case of a Stateful session bean a state called passive
state exists in its life cycle. The EJB container uses a
lease recently used algorithm to decide to passivate the
bean i.e move it from memory to secondary storage. Whenever
the client calls any business method on the bean it is
activated.
Whereas a stateless session bean is never passivated

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is ejb needed?

514


Is method overloading allowed in ejb?

554


How does ejbs work?

526


What are the differences between ejb 3.0 and ejb 2.0?

535


Can tomcat run ejb?

542






What do you understand by session facade?

532


What are the callback annotations for the stateless bean?

498


Elucidate callback in ejb?

556


What is the meaning of acid in the connection of transaction management?

550


What are the components of ejb?

570


What is ejb client?

562


What is EJB server?

602


Why should we use ejb?

531


What is a local interface?

554


Explain the concept of ejb ql?

606