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
Is ejb a framework?
How to create ejb project in eclipse?
What are the different types of ejb?
Define Context?
What is an ejb container?
How entity beans support container managed persistence?
How does ejb invocation happens?
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?
What is rmi and ejb in java?
What does @singleton annotation do?
An instance of stateful session ejb when accessed simultaneously from more than one clients on same vm results in remoteexception or ejbexception. In case the client is a servlet thread, which of the techniques can be used to avoid remoteexception/ejbexception?
Define SessionContext ?
What do you mean enterprise javabeans (ejb) container?
What are the limitations of using local object?
What are ejb components?