Building Java Enterprise Applications: Architecture
is the first of a series aiming to show how to fit the various Java technologies together to build complete applications. As the author observes, it is easy to find resources covering a particular technology, such as Enterprise JavaBeans or Java Servlets, but hard to find an explanation of how to choose the right APIs and connect them correctly. This title covers the back-end, primarily the database, directory server and Enterprise JavaBeans. Other titles in the series cover Web applications and Web services.
The topic is a large one, so you might expect a lengthy volume. In fact, this book is refreshingly short, with around 300 pages. The reason is that the author does not attempt to duplicate other books that cover topics like Enterprise JavaBeans in detail, but rather to show where these technologies fit in the overall architecture. Even so, there is plenty of code to chew on, as the book runs through the planning and implementation of an example application, this time for a fictitious investment broker.
The first half of the book looks briefly at requirement analysis and then covers the data layer, looking at how to design the data store, using a directory server for user management, and coding an Entity EJB to provide access to the database. Next comes implementing a manager component for interacting with the LDAP directory server. After completing the data layer, the author turns to the business logic, looking at a component to control user accounts and examining state management. Finally, the example application has a scheduling element, which makes a good introduction to use of the JMS (Java Messaging Service). The book closes with details of how to set up the application on BEA WebLogic, and provides all the example code.
Overall, the book is a little too brief, leaving significant gaps in what is covered. There is nothing on the use of modelling, for example. Even so, it makes an excellent case study, combining a high-level view that simplifies complex APIs with example code that puts theory into practice. --Tim Anderson
"an outstanding book
I found this book to be very informative and very well written. I am really looking forward to the next two volumes in the set." -- Tracy Pope, Fort Worth Java Users Group, July 2002
The J2EE novice will find it an invaluable guide to avoiding the pitfalls that can trap the inexperienced developer. -- Richard Drummond, LinuxFormat, September 2002
This book provides a combination of a tutorial and worked example, along with an insight into the thought processes of the designer. -- David Kennedy, slashdot.org, October 2, 2002