Building Java Enterprise Applications, Vol. 1: Architecture (O'Reilly Java)

Building Java Enterprise Applications, Vol. 1: Architecture (O'Reilly Java)

$39.95 $39.95

  • Release Date: March, 2002
  • Collectible Price: $14.99
  • Used Price: $0.43
  • Availability: Usually ships in 24 hours
  • Third Party Used Price: $2.50

Author: Brett McLaughlin

Aimed at the more experienced Java developer, Building Java Enterprise Applications provides a detailed tour of the best practices for today's J2EE architecture. Filled with particularly good advice on using Enterprise JavaBeans (EJBs) and LDAP directory services, this title lays the groundwork for building the next generation of Java software.

As volume one of a planned three-volume series, this book centers on "blueprints" for using the best of J2EE technologies for creating scalable software. The focus here is on a meaningful, single practical case study on a database for a brokerage house. The selection of leading-edge technologies (EJB and LDAP) are what real Java developers are likely to face on the job, and the author's knowledgeable and thorough explanation of all the relevant details of implementing the sample system sets a high standard.

Early sections define the scope and requirements of the model database and directory server. The author then turns to implementing the database, including building tables. (Actual SQL for different databases including Oracle and MySQL is included in an appendix.) Similarly, the "real" details of modeling a directory server (using LDAP) is set out to show how users, passwords, and other information can be leveraged across a larger organization. After the groundwork is in place, this text zeroes in on using Enterprise JavaBeans (EJB) 2.0 to model each business entity in the system (as well as application logic). Standout material shows off building an entity EJB with multiple interfaces, classes, and deployment descriptors all clearly presented.

The use of the manager session bean to hide the details of JNDI and LDAP comes next, and this bit of intellectual property will surely justify the price of this book for anyone seeking to combine EJBs and LDAP. From here, the application logic gets filled in using other EJB features (like session beans, both stateful and stateless). A later chapter adds asynchronous processing abilities using the Java Message Service (JMS) and the new message bean type, new for EJB 2.0. The assembled system then gets a simple front end to test it out, though the focus clearly is on the data tier. (More on user interfaces is promised in the second volume of this series, which will concentrate on Web applications.)

Useful appendices provide the nuts and bolts of running actual software, like OpenLDAP, a free directory server, BEA WebLogic, plus full source code for all beans discussed in this text. All in all, this book is a worthwhile choice for understanding the right ways for designing on the Java platform today when it comes to higher-end enterprise software. --Richard Dragan

Topics covered: Introduction to architecture for Java Enterprise applications; case study for a client/broker database for a brokerage with scheduling support, data, business, and presentation layers explained; primer for database design (including SQL, constraints, and tables); designing an LDAP directory (plus directory hierarchies); Enterprise JavaBean 2.0 basics (remote, local, and local home interfaces, plus primary keys); EJB deployment descriptors; implementing sequences for new records in EJBs (a sequence bean); using a manager EJB for JNDI/LDAP processing; connection sharing for performance; adding sample data; deployment; using patterns for business logic with EJBs (the Facade pattern); stateful vs. stateless beans; asynchronous processing and message beans (including JMS basics); extending the data architecture for Web applications (and Web services); appendices for sample SQL scripts and database-specific hints for MySQL, Oracle, and PostgreSQL; and a reference to running OpenLDAP, iPlanet Directory Server, and BEA WebLogic Application Server.

Similar Products

Enterprise JavaBeans (3rd Edition)

From $30.57:

Enterprise JavaBeans (3rd Edition)

Java Enterprise Best Practices

From $23.07:

Java Enterprise Best Practices

Java in a Nutshell, Fourth Edition

From $26.37:

Java in a Nutshell, Fourth Edition

Java and XSLT (O'Reilly Java)

From $26.37:

Java and XSLT (O'Reilly Java)

Java Security (2nd Edition)

From $31.46:

Java Security (2nd Edition)

Customer Rating: 3.4 of 5 (10 total reviews)

  • 3 starsToo basic

    I really wanted to like this book, but I simply could not. I enjoyed Brett's Java & XML quite a bit, and my hopes for Java Enterprise Applications were quite high. The idea behind the series, to show how everything in J2EE fits together, sounded really appealing.

    Alas, the book did not live up to my expectations. I am an experienced Java developer currently studying for the Sun Certified Enterprise Architect certification. For me, the contents of the book were on the verge of being trivial. I learned a little about LDAP, but the rest of the book was very much fluff, and not very filling.

    Even more annoyingly, the book contains some subtle errors and bad practices, like Double-Checked Locking on page 135 ...pooling of potentially broken connections on page 139, arguments from "security through obscurity" on page 151, and suppressed exceptions on page 155. J2EE contains enough pitfalls for practitioners even without experts teaching bad practices.

    This book has its good sides, too. It contains much source code, making it a fast read. The amount of source code really highlights some of the very negative aspects of EJBs (especially Entity beans), but the author did give any suggestions for improvements.

    If you have just encountered J2EE and EJBs, this book might be good for you. I would rather recommend reading Monson-Haefel on EJBs and the JMS tutorial trail on java.sun.com.

  • 4 starsGreat overview

    This book will not teach you all the nitty gritty of J2EE. It will, however, explain when to use what part of the APIs. It goes through a lot of the different parts of J2EE.

    For me it was a good overview. I started coding J2EE by going in deep from the start. If this book would've been available when I was learning the technology, my path to understanding it all would've been shorter.

    I especially liked the way the author builds the different elements together to construct a system. It shows how they mix.

  • 2 starsGood for getting started w/ J2EE, BUT TOO MANY ERRORS

    I've often seen complaints about O'Reilly's editing in reviews like this. Now I know what all those folks are complaining about. The diagrams and examples in this book are just plain *BAD*. In the section on DB design I don't think there wasn't one ER diagram with out MULTIPLE errors. Where's the quality control? I would have given 4 stars if the diagrams and examples were corrct.

    The textual content of the book is actually pretty good, easy to read, but a little slow paced for me. I was initially attracted to the book because of it's promise of bringing multiple J2EE concepts toghether in one read. I'm afraid tho that if I'm left to analyzing and correcting errors in areas that I'm familiar with that I'll be very confused and frustrated by errors in areas I'm not so familar with.

    I will certainly scrutinize the next two volumes in the series much more closely before I consider buying.