What are types in SessionBeans?



What are types in SessionBeans?..

Answer / 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

More EJB Interview Questions

TX operation funtion executed by?

0 Answers   Satyam,


What is ejb and how it works?

0 Answers  


What is stateless session bean?

0 Answers  


What is ejb client?

0 Answers  


Is soap stateless or stateful?

0 Answers  






What are the design goals of EJB Architecture?

1 Answers  


Explain the Sotware Architechture of EJB?

1 Answers   Wipro,


What are the design goals of EJB architecture?

1 Answers  


what is the Relationship between EJB and CORBA architecture?

0 Answers   IBM,


How does the server decide which beans to passivate and activate?

0 Answers  


What is @injectmock?

0 Answers  


What is the purpose of a transaction monitor?

1 Answers  


Categories