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 111 of 172    Print  
what kind of bean(entity/session) will you use if there are no database transactions and all you use is a read-only database.

  
Total Answers and Comments: 5 Last Update: May 11, 2008     Asked by: deepti_bellubbi 
  
 Sponsored Links



 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
April 18, 2006 06:18:02   #1  
parash goswami        

RE: what kind of bean(entity/session) will you use if ...
stateless session bean
 
Is this answer useful? Yes | No
April 20, 2006 05:57:49   #2  
Rakesh        

RE: what kind of bean(entity/session) will you use if ...
It depends on the available infrastructure and programming efforts to be put in.Read only Entity bean(CMP) will minimize progarmmer time and effors, if one is comfortable with CMP developmet.Stateless or BMP requires more effort and coding than CMP
 
Is this answer useful? Yes | No
May 03, 2006 08:36:28   #3  
anilkumar_983 Member Since: April 2006   Contribution: 1    

RE: what kind of bean(entity/session) will you use if ...
stateless sessionbean is used
 
Is this answer useful? Yes | No
May 03, 2006 10:03:31   #4  
s_s78 Member Since: January 2006   Contribution: 10    

RE: what kind of bean(entity/session) will you use if ...

If u are only reading the database then u dont need to use Entity been at all.

Entity been slows down data fetch operation.

U just need to use stateless session bean.


 
Is this answer useful? Yes | No
May 11, 2008 16:50:21   #5  
coolguy_krkr Member Since: May 2008   Contribution: 4    

RE: what kind of bean(entity/session) will you use if there are no database transactions and all you use is a read-only database.
If you have no database transactions and you need just data fetch..I would not go for both of them..

We can as well use simple dao with jdbc call to fetch data. If you have to pick one from the beans then definetely it would be stateless for this scenario.

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links



 
Sponsored Links

 
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