
Enterprise Java Programming with IBM WebSphere / Edition 1
by Kyle Brown, Craig, Pitt, Jaime Niswonger, Greg HesterISBN-10: 0201616173
ISBN-13: 9780201616170
Pub. Date: 05/04/2001
Publisher: Pearson Education
Enterprise Java Programming with IBM® WebSphere® brings together/i>/b>
/p>Overview
The future of business is e-commerce. Internet business-to-business (B2B) and business-to-consumer (B2C) initiatives have revolutionized the world's marketplaces. The companies that will survive in this new environment are those that can deliver quick solutions.
Enterprise Java Programming with IBM® WebSphere® brings together six WebSphere experts, who share with you their vast knowledge of Java server technology and examine how Java and the Web have met the unfulfilled expectations of e-commerce customers. This hands-on guide delves into the most exciting parts of Java 2 Enterprise Edition (J2EE), servlets, JavaServer Pages, and Enterprise JavaBeans. These technologies are examined in the context of the IBM WebSphere Application Server and the IBM VisualAge® for Java, Enterprise Edition, development environment. This book provides techniques for maximizing your use of the Java technologies and IBM products to deliver effective and efficient e-commerce solutions.
Java and Web developers looking to produce new e-business applications will find Enterprise Javaª Programming with IBM® WebSphere® invaluable. Through the course of this book you will learn
- How to apply J2EE technologies (e.g., Java servlets, JavaServer Pages, and Enterprise JavaBeans) within the correct architectural frameworks
- How WebSphere Application Server, Advanced Edition, addresses the J2EE standard and what advantages it provides developers as a J2EE application server.
- What advantages VisualAge for Java, Enterprise Edition, conveys as a platform for developing J2EEprograms for deployment on the WebSphere Application Server, Advanced Edition.
Two CDs included: The first CD contains fully-functional evaluation copies of IBM DB2 7.1 Personal Developer's Edition, IBM WebSphere Application Server (Advanced Edition 3.5), and WebSphere Studio 3.5, as well as the example code from the book's case study. The second CD contains a copy of VisualAge for Java 3.5, Enterprise Entry Edition.
Product Details
- ISBN-13:
- 9780201616170
- Publisher:
- Pearson Education
- Publication date:
- 05/04/2001
- Edition description:
- Older Edition
- Pages:
- 544
- Product dimensions:
- 7.34(w) x 9.22(h) x 1.00(d)
Table of Contents
Figures, Tables, and Listings.Foreword.
Preface.
1. Internet Business Environment.
Marketplace Competition.
IT Management Issues.
What Is Needed.
Summary and Preview.
2. Web Based Client/Server Solutions.
Distributed Logic.
Remote Data Management.
Distributed Data Management.
J2EE and Server-Side Solutions.
Summary and Preview.
3. MVC and Layered Architectures.
Layered Architecture.
Layered Architecture Defined.
Other Considerations.
Summary and Preview.
4. Introduction to Servlets.
Uniform Resource Identifiers.
Requests, Responses, and Headers.
Pulling It All Together.
Servlet Concepts.
Servlet Engines.
Servlet Life Cycle.
An Example Servlet.
Key Classes and Interfaces.
The javax.servlet.http Package.
Rationale for Servlets.
Summary and Preview.
5. Developing Servlets Using VisualAge for Java.
Using the WTE Control Center.
Starting the Servlet Engine.
Testing with the Servlet Engine.
Stopping the Servlet Engine.
Building an Example Servlet in VisualAge.
Configuring the Servlet Engine.
Summary and Preview.
6. Using the IBM WebSphere Application Server - Advanced Edition.
Some Definitions of WebSphere Components.
Testing the Installation.
Starting the Admin Server.
Opening the Administrator's Console.
Starting the Default Server.
Starting the Web Server.
Test Using the "Snoop" Servlet.
Creating the "EmployeeSys" Application Server.
Using XML Config.
Configuration Issues.
"Invoker" Servlet.
Summary and Preview.
7. Using IBM WebSphere Studio.
Installing and Starting Studio.
Using Page Designer.
Managing a Web Site.
Importing from VisualAge.
Importing Existing Sites.
Version Control.
Working in a Team.
Summary and Preview.
8. Session State Management.
Hidden Fields.
URL Parameters.
Servlets and Session State.
How the Session Is Found.
Choosing a Session Identifier.
Third-Tier Session Storage.
Other Session Storage Options.
Configuring WebSphere 3.5 Session Support.
The Cookies Section.
The Persistence Section.
The Intervals Section.
The Tuning Section.
Summary and Preview.
9. Servlet Design Considerations.
State Pattern.
Exception Handling.
Servlet Chaining and Filtering.
Using XML.
Summary and Preview.
10. JavaServer Pages Concepts.
Page Compilation: Runtime View.
JSP Syntax.
Directives.
Roles for JSP.
Summary and Preview.
11. JSP Actions, MVC, and Tools.
JSP Indirect Model.
JSP Standard Actions.
The getProperty and the setProperty Standard Actions.
The Rest of the Standard Action Tags.
JSP Development Tools: WebSphere Page Designer.
WebSphere Studio and Page Designer.
Testing JSPs.
JSP Execution Monitor.
Deploying JSPs.
Support for taglib and XML.
XML Compliance.
Summary and Preview.
12. Servlet and JSP Case Study.
Loading the Case Study into the WebSphere Test Environment.
User's Guide.
Create, Display, and Modify Time Sheet for an Employee.
Display Pending and Approved Time Sheets.
Case Study Analysis and Design Artifacts.
System Tasks.
Use Case List.
Use Case Definitions.
Time-Sheet Domain Model.
Class Listing.
Collaboration Diagram.
Mediator.
Domain.
Enumeration.
Filtering.
Container.
Time Sheets.
Time-Sheet State.
Mapping.
Package Structure.
Summary and Preview.
13. Enterprise Java Bean Architecture.
RMI Overview.
Remaining Problems.
Object Persistence.
Objects and Transactions.
Security in Enterprise Applications.
EJB Definition.
Session EJBs.
Entity EJBs.
Need for EJBs.
Summary and Preview.
14. Building Basic EJBs in VisualAge for Java.
Bean Implementation and Life Cycle.
EJB Home Interfaces.
Building EJBs in VisualAge.
Summary and Preview.
15. Testing and Debugging EJBs in VisualAge for Java.
Debugging EJBs in VisualAge for Java.
Summary and Preview.
16. Writing Simple EJB Clients.
Obtaining Home References.
Using the EJB.
EJBObject and Remote Proxies.
VisualAge for Java Access Beans.
Testing EJB Code in the Scrapbook.
Using Servlets as EJB Clients.
Some Design Points about Servlet Clients.
Java Application Clients.
Running Application Clients Outside of VisualAge.
Summary and Preview.
17. Simple Container Managed Persistence Entity Beans.
CMP in WebSphere and VisualAge for Java.
The Parts of an Entity Bean.
Home Interfaces.
Key Classes.
Finder Helpers.
Bean Implementation Classes.
Summary and Preview.
18. EJB Transactions.
Transactions and Two-Phase Commit.
EJBs and Transactions.
Starting a Transaction.
Participating in a Transaction.
Setting Transaction Attributes.
Transactions and Concurrency.
Introduction to Isolation Levels.
WebSphere-Specific Transaction Settings.
Summary and Preview.
19. Building Entity Beans in VisualAge and WebSphere.
Schemas, EJBs, and Table Maps.
Exporting a Schema to a Database.
Some Simple Tests.
Summary and Preview.
20. Advanced CMP Mapping.
Object-Relational Basics.
Concepts in EJB Relationship Mapping.
Associations in UML.
Associations in VisualAge for Java 3.5.
Single-Valued Association Implementation Details.
Implementing Many-Valued Relationships.
Wrapping Up Relationships.
EJB Inheritance in VisualAge.
Building Inherited Beans in VisualAge.
Inheritance of Home Interfaces.
Database Inheritance Strategies.
CMP Entity Support for Inheritance.
Summary and Preview.
21. Bean Managed Persistence.
A Simple BMP Bean.
WebSphere JDBC Connection Pooling.
Examining BMP Persistence.
Writing BMP Finder Methods.
Writing BMP ejbLoad() Methods.
Writing ejbStore() Methods.
BMP versus CMP.
Summary and Preview.
22. Building Layered Architectures for EJB Systems.
The Session Facade and Data Bean Solution.
Examples of the Session Facade/Data Bean Solution.
A More Complex Example.
An Updating Example.
Summary and Preview.
23. Deploying EJBs into WebSphere.
Creating an EJB JAR from VisualAge for Java.
VisualAge Deployed JAR File.
Client JAR File.
Best Practices for EJB Deployment.
Deploying EJBs to WebSphere.
Deploying Files from Studio.
Defining EJBs.
Final Changes.
Summary and Preview.
24. A Final Look.
Layering: MVC revisited.
Tools.
Parting Comments.
Appendix A: Mapping Domain Objects to Datastores.
Appendix B: Application Service Layers.
Startup Sequence.
Exception Handling.
Application Property and Resource Access.
Bibliography.
Index.