- Presentation tier (JSF)
- JSP mustn’t contain Java scriptlets.
- JSP must contain references to backing beans via JSF binding.
- Catalogs must be cached in a bean with scope “application”.
- Backing beans must use the Business Delegate in order to communicate with the business tier.
- When a Business Delegates helper invokes a Stateless Session Bean, the Business Delegates helper can be a singleton and the lookup can be done in the constructor. This way, there is only one Proxy and one JNDI lookup.
- Business tier (EJB 3.0)
- There must be only one invocation to the business tier per request (with this restriction, we try to ensure that EJB services are coarse-grained business components).
- All the database access must be delegated to DAO classes.
- DAO mustn’t contain business logic.
Tuesday, December 09, 2008
A simple code revison for a JSF / EJB3.0 project
In my current J2EE project (JSF with EJB 3.0) , we did a simple code revision.
The points of verification were:
No comments:
Post a Comment