Summary
Foreword by Martin Fowler
Enterprise Java Programming with IBM WebSphere, Second Edition is the definitive guide tobuilding mission-critical enterprise systems with J2EE, WebSphere, and WebSphere StudioApplication Developer. Fully updated for Versions 5.x of WebSphere Application Server andWebSphere Studio Application Developer, it combines expert architectural best practices with acase study that walks you through constructing an entire system.
The authors are an extraordinary team of WebSphere insiders: developers, consultants,instructors, and IBM WebSphere development team members. Together, they offer unprecedentedinsight into the use and behavior of WebSphere's APIs in real-world environments—andsystematic guidance for delivering systems of exceptional performance, robustness, and businessvalue.
Coverage includes—
- Practical introductions to J2EE, WebSphere Application Server 5.0, and Web application architecture
- Detailed coverage of Web application construction, including MVC partitioning with Struts, servlets/JSP, and session management
- Step-by-step guidance for building and testing application business models, including JUnit testing
- In-depth insight into EJB architecture, including transactions, security, and advanced object relational mapping
- Web services: examples and best practices leveraging WebSphere Application Server 5.x's latest enhancements
CD-ROMs Included
The CD-ROMs contain trial copies of IBM WebSphere Studio Application Developer (Version 5.0.2),IBM WebSphere Application Server (Version 5.02), and DB2 Universal Database, Personal Edition(Version 8.1.2) for Microsoft Windows 2000/XP. The CD-ROMs also include source code for thecase study examples used in the book.
Table of Contents
Foreword.
Preface.
1. Introduction.
Why Software Development Must Consider the Whole Enterprise. How Iterative Development Addresses Key IT Management Issues. Today's Enterprise Applications Have New Requirements. What Is the Starting Point? What Is a Layered Architecture? Layered Architecture Benefits. Summary.2. Introduction to the Case Study.
Case Study Analysis and Design Artifacts. Use Case Definitions. Designing the Case Study Domain Model. Using the Case Study in Our Book. Summary.3. J2EE Overview.
Why J2EE? J2EE Architecture. J2EE Platform Roles. J2EE Versions and Evolution. A J2EE Perspective. Summary.4. What Is WebSphere?
WebSphere Foundation and Tools. The WAS Core Architecture. Administering a local WAS Server. Leveraging the Scalability of WAS ND. Summary.5. Presentation Layer Patterns.
Java User Interface Technologies. Decoupling the User Interface. Mediating Logical View Logic. Summary.6. Servlets.
HTTP Technology Primer. Servlet Concepts. Servlet Life Cycle. An Example Servlet. Web Deployment Descriptors. Filters. Servlet API Classes and Interfaces. Summary.7. Developing Servlets Using IBM WebSphere Studio Application Developer.
The IBM WebSphere Studio Family of Tools. Building an Example Servlet with WSAD. Some Problems with This Example. Summary.8. Testing Servlets Using WSAD.
Edit the Web Deployment Descriptor. Summary.9. Managing Session State.
Some Client-Side Session Approaches. Servlets and Session State. Choosing the Right Approach. Session Persistence. Summary.10. JavaServer Pages Concepts.
Page Templates and Server-Side Scripting. A Short History of Java Server Pages. Page Compilation—Runtime View. JSP Syntax. Scripting Elements. Directives. JSP Documents. Roles for JSP. Summary.11. Tag Libraries and Custom Tags.
Introduction. Basic Model for Custom Tags. JSTL and Other Widely Used Tag Libraries. Writing Tag Handlers. Tag Library Descriptor (.tld). Taglib Directive and Coding Custom Actions. Support for Custom Actions. Summary.12. Design Considerations for Controllers.
Where Do Controllers Come From? Controller Design Alternatives. Exception Handling. Logging. Servlet Filters. Summary.13. Developing and Testing JSPs in WSAD.
Another Look at MVC. JavaBeans, Introspection, and Contracts. Building Applications Using JSPs with WSAD. Editing JavaServer Pages. Validating the JSP Page. Running on the Server. Debugging the JSP. Simplifying JSPs. XML compliance. Summary.14. Apache Struts as an MVC Framework.
Road Map. Why Do You Need a Framework? What Is Struts? A Simple MVC Struts Example. Struts Best Practices. Summary.15. XML/XSL Web Interfaces in WSAD.
Strategy for Using XML/XSL for Web Interfaces. Example XML/XSL Web Interface with WSAD. Creating the XSL File. Enhanced Example of XML/XSL Web Interface with WSAD. Dynamic Example XML/XSL Web Interface with WSAD. When to Use XML/XSL for Web Interfaces. Summary.16. Developing and Testing the Domain Model.
The Domain Model Layer. The Data Mapping Layer. Testing the Model. Summary.17. Unit and Functional Testing Applications in WSAD.
Overall Testing Approaches. What Is JUnit? A Simple Example. Unit Testing Containers with Cactus. Function Testing Applications in WSAD. Function Testing. What Is HttpUnit? The HttpUnit API. Following Links. Working with Forms. Working with Tables. Working with Frames. Working with