- Always use MVC.
- Don't reinvent the wheel.
- Apply automated unit tests and test harnesses at every layer.
- Develop to the specifications, not the application server.
- Plan for using Java EE 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.
- Take advantage of application server features that do not require your code to be modified.
- Play nice within existing environments.
- Embrace the qualities of service provided by the application server environment.
- Embrace Java EE, don't fake it.
- Plan for version updates.
- At all points of interest in your code, log your program state using a standard logging framework.
- Always clean up after yourself.
- Follow rigorous procedures for development and testing.
Wednesday, February 28, 2007
Java EE best practices
A recent article in IBM developerworks discusses best practices in Java EE development. This is an update of the 2004 article on J2EE best practices. Here's the complete list:
Subscribe to:
Post Comments (Atom)
Popular Posts
-
This post describes how to modify the User details stored in the Acegi Security Context. Acegi Security uses the SecurityContextHolder objec...
-
Google Guice is an open source Dependency Injection framework from Google. Guice is based on annotations and generics unlike Spring which d...
-
Struts error "Cannot find bean under name org.apache.struts.taglib.html.BEAN" Check: 1.) Improper use of a struts tag. 2.) Form be...
-
In a previous post, I described how to use Quartz scheduler for scheduling . In this post, I describe the configuration changes required for...
-
In the previous post, I described the use of Displaytag to implement paging in a simple JSP. In this example, I describe the use of Displayt...
-
Direct Web Remoting (DWR) is an engine that exposes methods of server-side Java objects to JavaScript code. With DWR, your client-side code...
-
Oracle announced the general availability of Oracle(r) SQL developer, a new, free, database developement tool. Oracle SQL developer simplifi...
-
Struts 2.0 provides the ability to chain multiple actions into a defined sequence or workflow. Action chaining can be achieved in multiple ...
-
This post will describe how to create and deploy a Java Web Application war to Heroku using Heroku CLI. You will need a basic understanding ...
-
This post contains the points to be noted when implementing Singleton Pattern in the EJB tier. As described in the previous post ( EJB Progr...
No comments:
Post a Comment