
J2EE and Beyond
Design, Develop, and Deploy World-Class Java Software
Art Taylor(Author)
Prentice Hall (Publisher)
Published on 8. January 2003
Book
Paperback/Softback
1050 pages
978-0-13-141745-8 (ISBN)
Description
J2EE: Design, Develop and Deploy WorldClass Java Software is the Java developer's one-stop guide to creating and deploying J2EE components! Art Taylor, an experienced J2EE programmer, trainer, and author, illustrates the importance of architecture and design in effective J2EE applet deployment. The case studies and accompanying code provide readers with what they need to know to design, architect and deploy J2EE applets effectively. In addition, the author provides technical depth about a wide spectrum of J2EE technologies, touching on virtually all relevant aspects of J2EE development, including JSPs, servlets, RMI, network programming, and extensive Enterprise JavaBeans coverage.
More details
Language
English
Place of publication
Upper Saddle River
United States
Publishing group
Pearson Education (US)
Target group
College/higher education
Dimensions
Height: 234 mm
Width: 175 mm
Thickness: 36 mm
Weight
1413 gr
ISBN-13
978-0-13-141745-8 (9780131417458)
Copyright in bibliographic data and cover images is held by Nielsen Book Services Limited or by the publishers or by their respective licensors: all rights reserved.
Schweitzer Classification
Other editions
Previous edition
Book
12/2002
Prentice Hall PTR
€44.56
The article will not be published
Person
ART TAYLOR has over 18 years of IT experience, most of it focused on database application development. He is the author of several technical books on Java, has served as technical lead on many J2EE projects, and has taught high-level Java and J2EE courses for Sun Microsystems. Taylor's books include JDBC Developer's Resource and JDBC: Database Programming with J2EE (both published by Prentice Hall PTR).
Content
Preface.
I. INTRODUCTION TO J2EE.
1. J2EE and Beyond.
Introduction. When It All Began. Multitiered Development with J2EE. Core J2EE Packages. J2EE Components. Presentation Tier Components. Business Tier Components. Summary.
2. J2EE Architecture and Design.
Introduction. Architecture Defined. Architecture and J2EE. Goals of the Architectural Process. The Architectural Process. Summary.
3. Analysis, Design, and Development Techniques With J2EE.
Introduction. The Architectural Process. Project Communication and the Unified Modeling Language. The Analytical Process, J2EE Style. Use Case Analysis. Managing Use Case Complexity. Object Types. Summary.
4. J2EE Case Studies.
Introduction. The Discussion Group System. The Movie Shopping System. Summary.
II. CORE J2EE TECHNOLOGY.
5. The JDBC API: JDBC Basics.
Introduction. Connecting to the Relational Database. The JDBC Package. The javax.sql Package. Using JDBC. Using the Connection Class. JNDI and DataSources. Summary.
6. JDBC: Connecting to the Database and Using the Data.
Introduction. Retrieving and Manipulating Data: The Statement Class and JDBC Exceptions. Summary.
7. JDBC: Preparing SQL Statements and Examining Results.
Introduction. The PreparedStatement. The ResultSet Class. Data Type Mapping. SQL CHAR Data Type. Summary.
8. Java Security.
Introduction. Java Security and Protection Domains. The Java Security Environment. Java Security Classes. Providing Security through Encryption. The Java Keystore. Using the Keytool Utility. Summary.
9. The Java Authentication and Authorization API (JAAS).
Introduction. Package History and Design. The JAAS Package. Authentication with JAAS. Code Example. Application Execution. Summary.
10. The Java Secure Sockets Extension: JSSE.
Introduction. The JSSE API. The SSL Protocol. JSSE Installation. The JSSE Package. JSSE Code Sample. The SSLServer Class. The SSLServer Class Constructor. The SSLClient Class. The SSLClient Class Constructor. The Client Superclass. Summary.
11. Using Cryptography With Java.
Introduction. Package Design. JCE Example. Summary.
12. Using A Naming Service with Java: The JNDI Package.
Introduction. JNDI and Naming Services. The Context. Directory Servers. LDAP Basics. The JNDI API. JNDI Coding Examples. The Directoryservice Class: The Getcontext Method. The Environment Class. Summary.
13. Using Logging with J2EE.
Introduction. The Benefits of Logging. The LOG4J API. A LOG4J Code Example. The Java.Util.Logging Package. Java JDK Logging Code Sample. The Singlelineformatter Class. Creating A Convenience Method to Implement Logging. Summary.
14. Java and XML: Introduction to XML.
Introduction. Uses of XML. What It Is and What It Isn't. XML: Applying Order to Data. XML Standards. Java XML Packages. The XML Document. Elements in an XML Document. Describing the XML Document: The DTD. Summary.
15. XML and Java: The JAXP PackagE.
Introduction. Parsing and Transforming. JAXP Overview. XML Parsing and Transformations. Retrieving the Value of a Specific Node Using DOM. Event-Driven Parsing: The Sax Parser. Summary.
16. XML Transformation and Creating XML Documents.
Introduction. Transforming XML Documents. Programming XML Transformations. Converting Objects To XML Format. The JDBCXML Class. Summary.
17. Java Networking API.
Introduction. TCP/IP Networking. TCP/IP Network Addresses. Network Programming: The Network Socket. Java Sockets. Data Transmission and Object Serialization. Socket Programming Example. Summary.
18. Using Remote Method Invocation.
Introduction. The Concept of Remote Objects. The RMI Framework. Building An RMI Application. Using Java RMI. RMI Classes and Interfaces. The Hello World RMI Example. Using the RMI Registry. An RMI Order Status Server. Summary.
19. Additional RMI Concepts.
Introduction. Using RMI Callbacks. Auto-Starting RMI Servers With Activation. Binding RMI Objects Into A Directory Server. RMI Versus Other Remote Services Solutions. Dynamic Class Loading With RMI. Summary.
20. Using Messaging with Java: The JMS API.
Introduction. The JMS API. When Messaging Is A Good Choice. Using JMS With A Message Queue. Using Publish And Subscribe Messaging. Summary.
21. The Javamail API.
Introduction. Electronic Mail. Summary.
22. JAXM: Java Web Services.
Introduction. Why We Need Web Services. Web Services Defined. The Soap Messaging Standard. Java and Web Services. JAXM Packages. Using JAXM: Sample Applications. Summary.
23. Using A Remote Provider: Soap-RP.
Introduction. Soap Remote Providers. The Provider.XML Configuration File. JAXM Provider Examples. The Moviesorderservice Class: The Onmessage Method Sending A Message To A Soap Messaging Provider. Summary.
24. Enterprise Javabeans: An Introduction.
Introduction. The Java Middleware Architecture. The EJB Container. Server Clusters and Failover Capabilities. EJB Deployment. EJB Runtime Operation (How EJBs Work). EJBs and Transactions. Developing EJBs. Summary.
25. Ejbs: Deployment, Security, and Transactions.
Introduction. EJB Roles. The EJB Deployment Descriptor. Security With EJBs. Transactions With EJBs. Bean-Managed Transactions. Summary.
26. Programming With EJBs.
Introduction. Types Of Entity Beans. Connecting EJBs to Presentation Tier Components. The Servletexample2 Class Declaration. Session Beans: The Moviesfacadebean Class. Accessing an Entity Bean. The Moviesbean Javabean. Entity Beans: The Moviesentitybean Class. Message-Driven Beans. EJB MDB Client. The Deployment Descriptor. Message Driven Beans: Security and Transactions. Summary.
27. Using Java Servlets.
Introduction. The Network: TCP/IP. The Network: HTTP. The HTML Standard. The Web Application. The Execution of Java Servlets. Servlet Example. The Servletexample1 Class: The Web.XML File. Summary.
28. Java Server Pages: The Basics.
Introduction. Why JSP?. Java Server Pages Development. How JSP Works. The Web Application and The Session. The Concept of Scope. JSP Implicit Objects. Directives. Summary.
29. JSP Examples.
Introduction. Some JSP Examples. Java Software Components: JavaBeans and EJBs. Using JavaBeans With JSPs. JavaBeans Versus Custom Tag Libraries. sing Custom Tags In JSP. JavaBeans Or Custom Tag Libraries: Tips On Usage. Model1 and Model2 Web Application Architectures. Summary.
30. Creating Graphical User Interfaces With Java.
Introduction. The Java GUI. The Abstract Windowing Toolkit (AWT). Java GUI Event Handling. The Swing API. The Swingguidemo Program. The Swingguidemo Class. Sample Application: The Table Browser Application. Technical Approach. The Tablebrowser.Java Application: The Datatablemodel Inner Class. Summary.
31. Using Swing Applications With RMI.
Introduction. Using Applets. The Business Logic. Summary.
III. J2EE APPLIED.
32. Java Design Patterns.
Introduction. The Architectural Tiers. Design Patterns. Summary.
33. J2EE Applied: Creating a Framework-Based Shopping Cart Application.
Introduction. Frameworks. The Struts Framework. The Movies Shopping Cart Application. The Struts Package. The WEB.XML File. The Struts Configuration File. Java Design Patterns. Summary.
34. J2EE Applied: The Movie Store Application.
Introduction. The Movie Store Application. The LogonAction Class. User Registration. Displaying the Main Menu. The Menu JSP Page. Listing Movies. The Movies Listing Servlet. The XSL Template for the Movies Listing. Adding to the Shopping Cart. The Shopping Cart Bean. The Checkout Process. Sending Email. Logging Out of the Movie Store. The Constants. Deploying and Running the Application. Summary.
35. The Shopping Cart Application: Using EJBs and Blobs.
Introduction. Refactoring the ShoppingCartBean. The Session Bean Code. The Blobview servlet. The BlobWriter Class. The Data Access Object: The GeneralDAO Class. The GeneralAggregateVO Class. Summary.
36. JSP in Development: A Discussion Group System.
Introduction. Discussion Group System: Application Description. The Message. Application Flow for the Message System. The Message System: Technical Description. Message System Database Design. Summary.
37. J2EE Applied: Coding the Discussion Group System.
Introduction. The Organization of the Discussion Group System. The Rest of the Story: JSP Pages and JavaBeans Code Explained. Summary.
Index.
I. INTRODUCTION TO J2EE.
1. J2EE and Beyond.
Introduction. When It All Began. Multitiered Development with J2EE. Core J2EE Packages. J2EE Components. Presentation Tier Components. Business Tier Components. Summary.
2. J2EE Architecture and Design.
Introduction. Architecture Defined. Architecture and J2EE. Goals of the Architectural Process. The Architectural Process. Summary.
3. Analysis, Design, and Development Techniques With J2EE.
Introduction. The Architectural Process. Project Communication and the Unified Modeling Language. The Analytical Process, J2EE Style. Use Case Analysis. Managing Use Case Complexity. Object Types. Summary.
4. J2EE Case Studies.
Introduction. The Discussion Group System. The Movie Shopping System. Summary.
II. CORE J2EE TECHNOLOGY.
5. The JDBC API: JDBC Basics.
Introduction. Connecting to the Relational Database. The JDBC Package. The javax.sql Package. Using JDBC. Using the Connection Class. JNDI and DataSources. Summary.
6. JDBC: Connecting to the Database and Using the Data.
Introduction. Retrieving and Manipulating Data: The Statement Class and JDBC Exceptions. Summary.
7. JDBC: Preparing SQL Statements and Examining Results.
Introduction. The PreparedStatement. The ResultSet Class. Data Type Mapping. SQL CHAR Data Type. Summary.
8. Java Security.
Introduction. Java Security and Protection Domains. The Java Security Environment. Java Security Classes. Providing Security through Encryption. The Java Keystore. Using the Keytool Utility. Summary.
9. The Java Authentication and Authorization API (JAAS).
Introduction. Package History and Design. The JAAS Package. Authentication with JAAS. Code Example. Application Execution. Summary.
10. The Java Secure Sockets Extension: JSSE.
Introduction. The JSSE API. The SSL Protocol. JSSE Installation. The JSSE Package. JSSE Code Sample. The SSLServer Class. The SSLServer Class Constructor. The SSLClient Class. The SSLClient Class Constructor. The Client Superclass. Summary.
11. Using Cryptography With Java.
Introduction. Package Design. JCE Example. Summary.
12. Using A Naming Service with Java: The JNDI Package.
Introduction. JNDI and Naming Services. The Context. Directory Servers. LDAP Basics. The JNDI API. JNDI Coding Examples. The Directoryservice Class: The Getcontext Method. The Environment Class. Summary.
13. Using Logging with J2EE.
Introduction. The Benefits of Logging. The LOG4J API. A LOG4J Code Example. The Java.Util.Logging Package. Java JDK Logging Code Sample. The Singlelineformatter Class. Creating A Convenience Method to Implement Logging. Summary.
14. Java and XML: Introduction to XML.
Introduction. Uses of XML. What It Is and What It Isn't. XML: Applying Order to Data. XML Standards. Java XML Packages. The XML Document. Elements in an XML Document. Describing the XML Document: The DTD. Summary.
15. XML and Java: The JAXP PackagE.
Introduction. Parsing and Transforming. JAXP Overview. XML Parsing and Transformations. Retrieving the Value of a Specific Node Using DOM. Event-Driven Parsing: The Sax Parser. Summary.
16. XML Transformation and Creating XML Documents.
Introduction. Transforming XML Documents. Programming XML Transformations. Converting Objects To XML Format. The JDBCXML Class. Summary.
17. Java Networking API.
Introduction. TCP/IP Networking. TCP/IP Network Addresses. Network Programming: The Network Socket. Java Sockets. Data Transmission and Object Serialization. Socket Programming Example. Summary.
18. Using Remote Method Invocation.
Introduction. The Concept of Remote Objects. The RMI Framework. Building An RMI Application. Using Java RMI. RMI Classes and Interfaces. The Hello World RMI Example. Using the RMI Registry. An RMI Order Status Server. Summary.
19. Additional RMI Concepts.
Introduction. Using RMI Callbacks. Auto-Starting RMI Servers With Activation. Binding RMI Objects Into A Directory Server. RMI Versus Other Remote Services Solutions. Dynamic Class Loading With RMI. Summary.
20. Using Messaging with Java: The JMS API.
Introduction. The JMS API. When Messaging Is A Good Choice. Using JMS With A Message Queue. Using Publish And Subscribe Messaging. Summary.
21. The Javamail API.
Introduction. Electronic Mail. Summary.
22. JAXM: Java Web Services.
Introduction. Why We Need Web Services. Web Services Defined. The Soap Messaging Standard. Java and Web Services. JAXM Packages. Using JAXM: Sample Applications. Summary.
23. Using A Remote Provider: Soap-RP.
Introduction. Soap Remote Providers. The Provider.XML Configuration File. JAXM Provider Examples. The Moviesorderservice Class: The Onmessage Method Sending A Message To A Soap Messaging Provider. Summary.
24. Enterprise Javabeans: An Introduction.
Introduction. The Java Middleware Architecture. The EJB Container. Server Clusters and Failover Capabilities. EJB Deployment. EJB Runtime Operation (How EJBs Work). EJBs and Transactions. Developing EJBs. Summary.
25. Ejbs: Deployment, Security, and Transactions.
Introduction. EJB Roles. The EJB Deployment Descriptor. Security With EJBs. Transactions With EJBs. Bean-Managed Transactions. Summary.
26. Programming With EJBs.
Introduction. Types Of Entity Beans. Connecting EJBs to Presentation Tier Components. The Servletexample2 Class Declaration. Session Beans: The Moviesfacadebean Class. Accessing an Entity Bean. The Moviesbean Javabean. Entity Beans: The Moviesentitybean Class. Message-Driven Beans. EJB MDB Client. The Deployment Descriptor. Message Driven Beans: Security and Transactions. Summary.
27. Using Java Servlets.
Introduction. The Network: TCP/IP. The Network: HTTP. The HTML Standard. The Web Application. The Execution of Java Servlets. Servlet Example. The Servletexample1 Class: The Web.XML File. Summary.
28. Java Server Pages: The Basics.
Introduction. Why JSP?. Java Server Pages Development. How JSP Works. The Web Application and The Session. The Concept of Scope. JSP Implicit Objects. Directives. Summary.
29. JSP Examples.
Introduction. Some JSP Examples. Java Software Components: JavaBeans and EJBs. Using JavaBeans With JSPs. JavaBeans Versus Custom Tag Libraries. sing Custom Tags In JSP. JavaBeans Or Custom Tag Libraries: Tips On Usage. Model1 and Model2 Web Application Architectures. Summary.
30. Creating Graphical User Interfaces With Java.
Introduction. The Java GUI. The Abstract Windowing Toolkit (AWT). Java GUI Event Handling. The Swing API. The Swingguidemo Program. The Swingguidemo Class. Sample Application: The Table Browser Application. Technical Approach. The Tablebrowser.Java Application: The Datatablemodel Inner Class. Summary.
31. Using Swing Applications With RMI.
Introduction. Using Applets. The Business Logic. Summary.
III. J2EE APPLIED.
32. Java Design Patterns.
Introduction. The Architectural Tiers. Design Patterns. Summary.
33. J2EE Applied: Creating a Framework-Based Shopping Cart Application.
Introduction. Frameworks. The Struts Framework. The Movies Shopping Cart Application. The Struts Package. The WEB.XML File. The Struts Configuration File. Java Design Patterns. Summary.
34. J2EE Applied: The Movie Store Application.
Introduction. The Movie Store Application. The LogonAction Class. User Registration. Displaying the Main Menu. The Menu JSP Page. Listing Movies. The Movies Listing Servlet. The XSL Template for the Movies Listing. Adding to the Shopping Cart. The Shopping Cart Bean. The Checkout Process. Sending Email. Logging Out of the Movie Store. The Constants. Deploying and Running the Application. Summary.
35. The Shopping Cart Application: Using EJBs and Blobs.
Introduction. Refactoring the ShoppingCartBean. The Session Bean Code. The Blobview servlet. The BlobWriter Class. The Data Access Object: The GeneralDAO Class. The GeneralAggregateVO Class. Summary.
36. JSP in Development: A Discussion Group System.
Introduction. Discussion Group System: Application Description. The Message. Application Flow for the Message System. The Message System: Technical Description. Message System Database Design. Summary.
37. J2EE Applied: Coding the Discussion Group System.
Introduction. The Organization of the Discussion Group System. The Rest of the Story: JSP Pages and JavaBeans Code Explained. Summary.
Index.