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

What are the components of session beam?

1 Answers  


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

1 Answers  


What is entity bean in ejb?

1 Answers  


What is EJB server provider?

1 Answers  


Why is ejb needed?

1 Answers  


How many enterprise beans?

1 Answers  


What is stateless code?

1 Answers  


Explain the architectural relationship between JavaBeans and JTA?

1 Answers  


Define ripple effect?

1 Answers  


What is the difference between ejb and spring?

1 Answers  


what are main features in EJB?

2 Answers  


What do you mean by bean managed transaction?

1 Answers  


Categories