What is the difference between stateful and stateless
session beans?

Answer Posted / pn8572

Stateful Session bean - the session bean which is associated with one EJB client.

example : normal item cart in any online shopping site.

Stateless Session bean- each session bean can be reused by multiple EJB clients.

example : EMI calculator.

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the advantage of using entity bean for database operations, over directly using jdbc api to do database operations?

645


What are ejb containers?

632


What does @inject mean in java?

726


What is software architecture of ejb?

625


What are the design principles for ejb?

598






What is singleton session bean?

669


How to invoke ejb from java client?

615


What is ejb javatpoint?

648


What is stateless session bean?

654


What ejb means?

608


Mention the three levels for applying interceptor methods.

630


What do you mean by ejb?

633


List some key actors in persistence api.

634


What is the difference between session and entity beans? When should I use one or the other?

634


What are versions of ejb?

691