Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: Brett McLaughlin

Rating No ratings yet

Volume 1 of this advanced 3-volume guide explores the infrastructure issues so important to good application design. It isn't just a book about Entity Beans and JNDI. It takes you step by step through building the back end, designing the data store so that it gives you convenient access to the data your application needs; designing a directory; figuring out how to handle security and where to store security credentials you need; and so on.

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
【One-Line Pitch】 A ground-up guide to the back end of Java enterprise systems: how to turn vague business needs into a technical blueprint, then build the databases, directory services, and entity beans that everything else rests on. Best for developers who already know some Java and want to see how the pieces of J2EE actually connect. 【Book Arc】 - **Opening (~0%–15%)**: Sets the series frame and the book's premise — most Java enterprise books teach individual APIs but never show how to wire them together. Introduces the sample application and the three-volume plan (architecture → web apps → web services). - **Early (~15%–30%)**: Planning and requirements. Maps business needs to technical requirements and converts a vague description into a technical blueprint, then begins implementing it as data storage — relational database design, SQL for creating the store, constraints, and a directory server. - **Middle (~30%–60%)**: Data-layer construction. Entity bean basics (design patterns, coding, deployment), then advanced entities — IDs, sequences, CMP, data modeling — followed by manager components that abstract data access and tie directory servers to entity beans and databases. - **Late (~60%–85%)**: Completing the data layer: threading, multiple directory server instances, client applications, and testing to verify everything works before moving up into the business layer. - **Ending (~85%–100%)**: Business-layer transition plus appendices on vendor-specific SQL, directory server setup (iPlanet, OpenLDAP), application server setup (BEA WebLogic), and supplemental code listings. 【Key Takeaways】 - **The book's real subject is integration, not APIs** (Opening): its stated gap is that no resource explains how to connect EJB, servlets, JNDI, and LDAP intelligently — façade patterns, attaching entity beans to directory servers, and avoiding performance killers. This is the reason to read it over API references. - **Design deserves more time than most developers give it** (Early): the author argues developers rush the design phase to get to coding and pay for it later, so planning and requirements get substantial coverage before any code. - **Data stores are two different things** (Early/Middle): application data belongs in a relational database, while authentication data belongs in a directory server — the book treats these as separate design problems with separate tooling. - **Entity beans are built incrementally** (Middle): start with a basic bean, then layer on generic ID/sequence handling, session-bean mixing, information maps, and advanced CMP rather than presenting EJB in one lump. - **Managers abstract data access** (Middle): a dedicated manager component (e.g., an LDAPManager class) wraps directory access and connects it to the entity beans and databases already built, keeping the layers decoupled. - **The data layer isn't done until it's tested** (Late): threading, multiple directory server instances, and client applications are addressed alongside testing to confirm the layer works before the business layer is built on top. - **Vendor differences are acknowledged, not hidden** (Ending): appendices cover database-specific SQL variations, directory server setup, and application server setup, so the core discussion stays portable. - **Code is the medium** (Opening): listings without comments run well over 100 pages — roughly 30% of the book — and the author deliberately shows code rather than discussing it. 【Reading Tips】 - **Work through it chapter by chapter with the code**: the author explicitly asks this, and Volumes II and III assume you have this volume's infrastructure running. Skimming breaks the series. - **Deep-read Chapters 2–3 (blueprints and foundation)**: this is where the design reasoning lives and where the book differs most from API manuals. Skim the setup appendices unless you're configuring that specific vendor. - **Expect a 2002-era stack**: J2EE 1.3, BEA WebLogic, iPlanet/OpenLDAP. Read for the architectural reasoning and layer boundaries; verify current equivalents for anything you deploy. - **Keep the layer model in mind**: data layer → business layer → presentation layer. Track which layer each chapter is finishing, since the book's value is in the seams between them. 【Coverage Limits】 The excerpts cover the preface, table of contents, and introductory chapters in detail, but the later chapters (business layer, appendices) are represented mainly by chapter summaries and TOC entries — specifics of that code are not covered here.
Page 3
.............................. 2.2 The Data Layer ............................................ 2.3 The Business Layer ..........................................
View in text
Excerpt 2
s well as the topics included in the chapters of this book. Building Java™ Enterprise Applications Volume I: Architecture 2 Chapter 2 As suggested by the tit...
View in text
Page 10
6 Chapter 1. Introduction Java has become a confusing world. Five years ago, there were few decisions to make once you started programming in Java—you used A...
View in text
Page 12
are also used heavily in the second and third volumes. 1.1.2 Volume II: Web Applications The second volume in the series will continue where Volume I leaves...
View in text
Page 13
ost impossible in earlier versions of the EJB specification. Of course, we'll quickly move beyond these basics. I'll demonstrate the impact that EJB 2.0 has...
View in text
Page 17
lueprints Let's begin to delve into enterprise applications. With some basic knowledge of the Java APIs and related technologies (such as XML) that are invol...
View in text
Page 19
va™ Enterprise Applications Volume I: Architecture 15 2.1.2.1 Online accessibility First and foremost, Forethought wants to move to a web-based solution for...
View in text
Page 20
than solving the individual problems that requirements pose. While a database may be a better means of storing data in one case, a directory server may be mo...
View in text
Tags
AI categories
JavaBackendSoftware
ISBN: 0596001231
Publisher: O'Reilly Media
Publish Year: 2002
Language: English
Pages: 274
File Format: PDF
File Size: 3.3 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…