Java EE 5
12 Best Practices for J2EE Developers Named
Digg This!
Kyle Brown and Keys Botzum, from IBM Software Services for WebSphere, together with Ruth Willenborg, Senior Manager, IBM WebSphere Performance, set out to come up with the list of what they consider to be the Top Twelve Best Practices for anyone involved in J2EE application development.
For the full details of each one, see their paper on the subject. WJ News Desk bring you here the overall summary list though, which reads as follows:
- 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.
The motivation for compiling the list, say the authors, was paradoxically not a lack of material on the subject, but rather the opposite.
"There now are probably 10 or more books, along with dozens of articles that provide insight into how J2EE applications should be written," they state, adding:
"In fact, there are so many resources, often with contradictory recommendations, navigating the maze has become an obstacle to adopting J2EE itself."
Brown, Botzum, and Willenborg say that they hope their efforts may assist with finding the best way through that maze.
About WebSphere News DeskWebSphere Journal News Desk trawls the world of e-commerce technologies for news and innovations and presents IT professionals with updates on technology trends, products, and services in the WebSphere family.