What are types in SessionBeans?

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


Please Help Members By Posting Answers For Below Questions

Write the basic requirement of a cmp entity based class in 2.0 from ejb 1.1?

589


What are the benefits of ejb?

553


How can a CORBA object, accessed from a EJB?

1674


Explain the architectural relationship between JavaBeans and JTA?

2389


What is difference between stateless and stateful?

495






What is entity beans in ejb with example?

506


What does ejb stand for?

616


What do you mean enterprise javabeans (ejb) container?

602


Can EJB made to handle multiple transactions?

606


What is ejb in java with example?

512


What are the advantages of java beam?

525


What is message-driven bean?

578


What are stateless applications?

565


What optimization could I use if the ejb container is the only point of write access to the database?

566


What is the difference between ejbcreate() and ejbpostcreate?

536