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
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 are the components of session beam?
What is pub/sub model?
What is EJB object?
What is ejb home object?
What is stateless authentication?
What is an entity and its types?
What do you mean by ejb?
What is ejb and its properties?
How is consistency maintained by Stateful Session through transaction updates ?
How do you decide whether you should use session, entity or message driven bean?
What is ejb context?
What are the various types of entity beam?
What is the purpose of ejb in java?
What is an ejb context?