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

 Print  |  
Question:  what kind of bean(entity/session) will you use if there are no database transactions and all you use is a read-only database.



May 05, 2008 16:50:21 #5
 coolguy_krkr   Member Since: May 2008    Total Comments: 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.
     

 

Back To Question