Why stateless session beans contain only one create() method and statefull session bean contain more than one create() metods?

Questions by sadashivarao   answers by sadashivarao

Showing Answers 1 - 4 of 4 Answers

Anitha

  • Sep 29th, 2006
 

At a time only one client can call a stateless session bean. The bean  hold no conversational state

  Was this answer useful?  Yes

Srikanth Varma

  • Oct 22nd, 2006
 

Stateless session bean maintain instance pooling technique , so it maintains pool of instances ,when a client make a call (create) it pulls one of the instace from the pool and assigned to that client ,so all the instances in the pool must have similar behavior ,so we should not use multiple creates in Stateless session bean. But in case of Statefull session bean every cilent is assigned with one instance(even it is passive state (or) Active state), so there is no need to maintain similar behavior for all the instances (because each instace is spesific to only one cilent) so in Statefull session bean there are multilple create() methods. that's all matter guys if u have any doubts on EJB u can share with me my e-mail id is mvsrikanthvarma@gmail.com 

Srinivasan

  • Dec 29th, 2006
 

stateless bean does not maintain the connection between client and container.Statefull maintain the connection between client and container.

  Was this answer useful?  Yes

tamil Selvan

  • Mar 16th, 2007
 

Stateless session beans can't maintain client specific state , so no need to pass initialization parameters to Stateless Session Bean

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions