InterviewSolution
| 1. |
Explain The Trade Off In Using Data Bean Against Access Bean? |
|
Answer» DataBean's implement more caching than a AccessBean, so POTENTIALLY REDUCE calls to the database. DataBean's are appropriate for use in the JSP pages that make up the site / WEB application as the number of instances is likely to be low and it should HELP control the number of transactions hitting the database. AccessBean's are MUCH less memory intensive, so can be more appropriate to looping processes etc. DataBean's implement more caching than a AccessBean, so potentially reduce calls to the database. DataBean's are appropriate for use in the JSP pages that make up the site / web application as the number of instances is likely to be low and it should help control the number of transactions hitting the database. AccessBean's are much less memory intensive, so can be more appropriate to looping processes etc. |
|