GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  J2EE  >  EJB
Go To First  |  Previous Question  |  Next Question 
 EJB  |  Question 5 of 175    Print  
What is the difference between Stateful session bean and Stateless session bean

Answer posted by Mohan on 2005-05-20 08:45:36: Stateful session beans have the passivated and Active state which the Stateless bean does not have.



  
Total Answers and Comments: 6 Last Update: January 28, 2008   
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: Lavanya
 
a) Stateful beans are also Persistent session beans. They are designed to service business processes that span multiple method requests or transactions. 
 
Stateless beans are designed to service business process that last only for a single method call or request. 
 
b) Stateful session beans remembers the previous requests and reponses. 
Stateless session beans do not remember the previous request and responses. 
 
c)Stateful session beans does not have pooling concept. 
Stattless session bean instances are pooled. 
 
d) Stateful S.Beans can retain their state on behave of an individual client. 
Stateless S.Beans donot maintain states. 
 
e) Stateful S.Beans can be passivated and reuses them for many clients. 
Stateless S.Beans, client specific data has to be pushed to the bean for each method invocation which result in increase of network traffic. 


Above answer was rated as good by the following members:
muktasharad
April 17, 2005 07:39:01   #1  
Lavanya        

RE: What is the difference between Stateful session bean and Stateless session bean
a) Stateful beans are also Persistent session beans. They are designed to service business processes that span multiple method requests or transactions. 
 
Stateless beans are designed to service business process that last only for a single method call or request. 
 
b) Stateful session beans remembers the previous requests and reponses. 
Stateless session beans do not remember the previous request and responses. 
 
c)Stateful session beans does not have pooling concept. 
Stattless session bean instances are pooled. 
 
d) Stateful S.Beans can retain their state on behave of an individual client. 
Stateless S.Beans donot maintain states. 
 
e) Stateful S.Beans can be passivated and reuses them for many clients. 
Stateless S.Beans, client specific data has to be pushed to the bean for each method invocation which result in increase of network traffic. 

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
May 20, 2005 08:45:36   #2  
Mohan        

RE: What is the difference between Stateful session bean and Stateless session bean
Stateful session beans have the passivated and Active state which the Stateless bean does not have.
 
Is this answer useful? Yes | No
August 27, 2005 06:35:46   #3  
Deepak        

RE: What is the difference between Stateful session bean and Stateless session bean
There is another important point which all of you guys have failed to mention. The important point is that Stateless Session beans are scaleable and can therefore be replaced by an enhanced model whereas Stateful Session beans are not scaleable.
 
Is this answer useful? Yes | No
October 03, 2005 08:15:29   #4  
stephen        

stephen.Gulli

     state full session bean will maintain the state of the client with server.with activate&passivate methods.

      state less session bean will not maintain the state.

   


 
Is this answer useful? Yes | No
July 16, 2007 06:55:53   #5  
Jeevan Sunkersett        

RE: What is the difference between Stateful session be...
Stateful Session Bean (SFSB) do not have the concept of pooling
 
Is this answer useful? Yes | No
January 28, 2008 08:25:06   #6  
srikanthm2 Member Since: January 2008   Contribution: 6    

RE: What is the difference between Stateful session bean and Stateless session bean
Stateful session beans follow the instance passivation technique
Stateless session beans follow the instance pooling technique.

ejbActivate() and ejbPassivate() methods are not called in Stateless session beans

I

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape