Answer Posted / sathya
Stateless SessionBean
Stateful Session Bean
The former,as the name suggests, doesn't maintain state
across sessions , each bean is independent , genereally a
pool of stateless beans are created and each bean returns to
this pool once its taks is completed.
Stateful Beans on other hand, maintains the session across
the states and returns to the pool once the session is timed
out.
can be used for database operations although not recommended.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is an entity manager?
What is ejb and its uses?
What is the difference between ejb and spring?
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?
Why should we use ejb?
What are the limitations of using local object?
What is an ejb platform?
What is jar, war, and ear?
Can tomcat run ejb?
How is consistency maintained by Stateful Session through transaction updates ?
What is ejb and its types?
What is ejb ql?
What is backing bean?
What is the use of @ejb annotation?
What is enterprise javabeans (ejb) container?