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

List some key actors in persistence api.

552


What is ejb ql?

570


Is ejbCreate() method mandatory while defining a Session Bean?

593


How can a CORBA object, accessed from a EJB?

1676


What is ptp model?

581






Is is possible for an ejb client to marshal an object of class java.lang.class to an ejb?

528


Can remove() be a Stateless Session bean?

578


Explain transaction and various methods to manage it?

533


What happens when I change a value in the httpsession from inside an ejb?

525


What does it mean to be stateless?

529


What is message-driven bean?

578


What are the limitations of using local object?

537


What is bean in ejb?

507


Can an ejb send asynchronous notifications to its clients?

536


Differentiate “find a method” from “select method” in EJB ?

530