|
J2EE Best Practices & Performance Tips |
|
|
Written by sunil boricha
|
|
Page 1 of 13
J2EE Best Practices & Performance Tips
A top 12 list of the most important best
practices for J2EE application development.These needs to be considered
while designing any J2EE applications
- Always use MVC.
- Apply automated unit tests and test harnesses at every layer.
- Develop to the specifications, not the application server.
- Plan for using J2EE security from Day One.
- Build what you know.
- Always use Session Facades whenever you use EJB components.
- Use stateless session beans instead of stateful session beans.
- Use container-managed transactions.
- Prefer JSPs as your first choice of presentation technology.
- When using HttpSessions, store only as much state as you need for the current business transaction and no more.
- In WebSphere, turn on dynamic caching and use the WebSphere servlet caching mechanism.
- 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.
|