Comments on a short article : To Layer, or not to Layer? That is the Architectural Question by Kevin Hooke. Debate follow on The Server Side.
Basically : The question is not if layers bring too much code than it is worth, but rather how to avoid the plumbing code through templating, frameworks (Spring, EJB3, ejbdoclets …) or IDE.
It is worth to recall this :
Before starting to develop an application with the java platform ask the good questions:
Do I need to distribute?
Do I need to support transaction?
And then choose the right technologies and architecture and layers
Java is not equal to J2EE
J2EE is not equal to EJB
And I found a reference to Martin Fowler‘s “Patterns of Enterprise Application Architecture” book (2002). But from the comments on Amazon, I won’t buy this book. Instead, I will make an other post about finding a good Architecture book … and still subscribe to Fowler’s blog.