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 is mean by RMI ? Please answer me. Advance thanks.

3 Answers   Excel,


Mention the three levels for applying interceptor methods.

0 Answers  


java doesnot support multiple inhetance. but a interface can support.how the ambiguities are rectified in interfaces?

3 Answers  


Which services are provided to ejb components by the ejb container?

0 Answers  


How do you decide whether you should use session, entity or message driven bean?

0 Answers  






What does statelessness mean?

0 Answers  


How to import ejb project in eclipse?

0 Answers  


Does spring use ejb?

0 Answers  


What is the major difference SessionBean and EntityBean?

3 Answers   KPIT, Wipro,


Define ejb Create() and EjbPostCreate()?

0 Answers  


What do you mean by ejbdoclet?

0 Answers  


what are required main interfaces in EJB?

2 Answers  


Categories