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 9 of 175    Print  
When you will chose Stateful session bean and Stateless session bean

  
Total Answers and Comments: 5 Last Update: June 06, 2006   
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: Natesh
 
stateful session bean is used when we need to maintain the client state .Where stateless session bean will not have a client state it will be in pool.Example of statefull session is Shoping cart site where we need to maintain the client state .

Above answer was rated as good by the following members:
phdsong
March 20, 2005 22:51:04   #1  
Natesh        

RE: When you will chose Stateful session bean and Stateless session bean
stateful session bean is used when we need to maintain the client state .Where stateless session bean will not have a client state it will be in pool.Example of statefull session is Shoping cart site where we need to maintain the client state .
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
June 02, 2005 11:48:56   #2  
Rokkam        

RE: When you will chose Stateful session bean and Stateless session bean
To maintain the state of the bean we prefer stateful session bean and example is to get mini statement in  
ATM we need sessions to be maintained.

 
Is this answer useful? Yes | No
July 14, 2005 04:35:24   #3  
Rahul Pundhir        

RE: When you will chose Stateful session bean and Stateless session bean
Thanks for giving me the proper Guidence
 
Is this answer useful? Yes | No
July 29, 2005 01:47:49   #4  
divya        

RE: When you will chose Stateful session bean and Stateless session bean
Stateful session beans are used when there is converstional state and when there is a need of temporary storage 
 
Stateless session bean are used when there is no conversational state and when session bean has to be used only for database access

 
Is this answer useful? Yes | No
June 06, 2006 07:55:24   #5  
Naveen        

RE: When you will chose Stateful session bean and Stat...

I'll  take a best exmaple to explain.

Statefull sessionbean : ATM operation

Stateless Session Bean : Credit card

Once we log into the ATM by entering PIN number. We can do multiple transacations like Balance enquiry, Withdrawl, ministatement..etc... For every transaction to client state is maintained and not required to enter for each transaction.

Coming to credit card operation.. There is only one transaction possible and for next transaction u required to authenticate again means no client state for second transaction...hence it is stateless


 
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