| |
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 | |