Advertisement
Home arrow Java Articles arrow J2EE EJB arrow J2EE Best Practices & Performance Tips
J2EE Best Practices & Performance Tips E-mail
Written by sunil boricha   
Article Index
J2EE Best Practices & Performance Tips
1. Always use MVC.
2. Apply automated unit tests
3. Develop to the specifications
4. Plan for using J2EE security
5. Build what you know.
6. Always use Session Facades
7. Use stateless session beans
8. Use container-managed transactions.
9. Prefer JSPs for presentation
10. store only as much state as you need
11. turn on dynamic caching
12. Prefer CMP Entity beans

J2EE Best Practices & Performance Tips



related links

A top 12 list of the most important best practices for J2EE application development.These needs to be considered while designing any J2EE applications
  1.  Always use MVC.
  2. Apply automated unit tests and test harnesses at every layer.
  3. Develop to the specifications, not the application server.
  4. Plan for using J2EE security from Day One.
  5. Build what you know.
  6. Always use Session Facades whenever you use EJB components.
  7. Use stateless session beans instead of stateful session beans.
  8. Use container-managed transactions.
  9. Prefer JSPs as your first choice of presentation technology.
  10. When using HttpSessions, store only as much state as you need for the current business transaction and no more.
  11. In WebSphere, turn on dynamic caching and use the WebSphere servlet caching mechanism.
  12. Prefer CMP Entity beans as a first-pass solution for O/R mapping due to the
    programmer productivity benefits.

Click next for explanations for each of the above tips.



 

Sponsored

Login / Logout


//SPONSORED
© 2004-2009 Anil Kumar Kuchana SkillFox.com