You are previewing Sams Teach Yourself BEA WebLogic Server 7.0™ in 21 Days.
O'Reilly logo
Sams Teach Yourself BEA WebLogic Server 7.0™ in 21 Days

Book Description

Sams Teach Yourself BEA WebLogic Server 7.0 in 21 Days covers all the features of WebLogic Server and how they enhance J2EE architecture. The book then covers WebLogic's role in devloping Web pages with Servlets and JavaServer Pages, components with Enterprise JavaBeans, database-driven applications with JDBC, and more. Later chapters include advanced J2EE concepts including messaging, transaction management and debugging. Each lesson is illustrated with real-world examples and finishes with useful questions and exercises to test readers' learning. Includes a CD-ROM with a trial version of WebLogic Platform and a searchable electronic version of the complete book.

Table of Contents

  1. Copyright
  2. Acknowledgments
  3. About the Authors
  4. Tell Us What You Think!
  5. Introduction
  6. WebLogic Server Fundamentals
    1. Introduction to BEA WebLogic Server 7.0
      1. Evolution of Application Servers
      2. WebLogic Server 7.0
      3. WebLogic Server 7.0 Features
      4. Useful Tools in WebLogic Server 7.0
      5. Summary
      6. Q&A
      7. Workshop
      8. Quiz
    2. Understanding J2EE Concepts
      1. Java 2 Enterprise Edition 1.3
      2. Java Servlet API
      3. JavaServer Pages (JSPs)
      4. Java Database Connectivity (JDBC) API
      5. Java Naming and Directory Interface (JNDI) API
      6. Enterprise JavaBeans (EJBs)
      7. Java Transaction API
      8. Java Message Service (JMS) API
      9. J2EE Connector Architecture (JCA)
      10. Enterprise Application Architectures
      11. The Airline Ticket Booking System Example
      12. Summary
      13. Q&A
      14. Workshop
      15. Quiz
    3. Working with Servlets
      1. Introduction to Servlets
      2. Core HTTP Servlet API
      3. Sessions
      4. Session Handling: URL Rewriting
      5. Session Handling: Cookies
      6. Session Handling: HttpSession API
      7. Summary
      8. Q&A
      9. Workshop
      10. Quiz
      11. Exercises
    4. Advanced Servlet Techniques
      1. Inter-servlet Communication
      2. Extending the BookShoppingServlet with BookCheckOutServlet
      3. Sample Program: Writing a Servlet Chain for the BookShoppingServlet
      4. Filters
      5. Extending Your BookShoppingServlet with a Simple Logging Filter
      6. Sample Program: Writing Filters for the BookShoppingServlet
      7. Listeners and Events
      8. Sample Program: Writing Listeners for the BookShoppingServlet
      9. Setting WebLogic Server–Specific Parameters
      10. Sample MVC Application: Controller Servlet
      11. Summary
      12. Q&A
      13. Workshop
      14. Quiz
      15. Exercises
    5. Writing JavaServer Pages (JSP)
      1. JavaServer Pages and Servlets: A Comparison
      2. Life Cycle of JSPs
      3. Flowchart for Developing JSPs
      4. Directive Tag
      5. declaration Tag
      6. expression Tag
      7. scriptlet Tag
      8. Action Tags
      9. Implicit Variables
      10. Rewriting BookShoppingServlet Using JSPs
      11. Sample Program
      12. Summary
      13. Q&A
      14. Workshop
      15. Quiz
      16. Exercises
    6. Advanced JavaServer Pages Techniques
      1. Flowchart for Developing a Custom Tag Library
      2. Writing a Custom JSP Tag Library
      3. WebLogic's JSP Tag Library
      4. Sample Program: Writing Your Custom Tag Library
      5. Model View Controller Application: View
      6. Summary
      7. Q&A
      8. Workshop
      9. Quiz
      10. Exercises
    7. Using JDBC
      1. Introduction to JDBC
      2. JDBC Concepts
      3. WebLogic's Support for JDBC
      4. Connections
      5. Connection Pools
      6. Configuring Connection Pools in WebLogic Server
      7. MultiPool
      8. DataSources
      9. Performance Tuning Your JDBC WebLogic Applications
      10. Summary
      11. Q&A
      12. Workshop
      13. Quiz
      14. Exercises
  7. Advanced Features of WebLogic
    1. Advanced JDBC Database Techniques
      1. Life Cycle of a JDBC Application
      2. Flowchart for Developing JDBC Applications
      3. The Statement Interface
      4. The PreparedStatement Interface
      5. The CallableStatement Interface
      6. The ResultSet Interface
      7. The ResultSetMetadata Interface
      8. SQL3 Data Types
      9. The RowSet Interface
      10. Sample Program
      11. Handling SQL Exceptions
      12. A Small Note on JDO and JDBC 3.0
      13. Summary
      14. Q&A
      15. Workshop
      16. Quiz
      17. Exercises
    2. Writing Enterprise Applications with JNDI
      1. WebLogic's Support for JNDI
      2. Life Cycle of a JNDI Application (Server and Client)
      3. Naming-Service Concepts
      4. Directory Service Concepts
      5. The Java Naming and Directory Interface
      6. Sample Program
      7. Summary
      8. Q&A
      9. Workshop
      10. Quiz
      11. Exercises
    3. Stateful Session Beans
      1. WebLogic's Support for Enterprise JavaBeans
      2. Life Cycle of a Stateful Session EJB
      3. Session Bean Concepts
      4. Strategies for Implementing EJBObject or EJBLocalObject Request Delegation
      5. Sample Program—Restaurant
      6. Summary
      7. Q&A
      8. Workshop
      9. Quiz
      10. Exercises
    4. Creating Stateless Session Beans
      1. Life Cycle of a Stateless Session EJB
      2. Stateless Session Bean Concepts
      3. Components of a Stateless Session EJB
      4. Sample Program: Restaurant
      5. Accessing a Session Bean from CORBA and RMI Clients
      6. MVC Application Model Layer: Stateful and Stateless Session Beans
      7. Summary
      8. Q&A
      9. Workshop
      10. Quiz
      11. Exercise
    5. Developing Entity Beans Using Container-Managed Persistence
      1. EJBs and Persistence
      2. WebLogic's Support for Entity Beans
      3. Life Cycle of an Entity EJB
      4. Flowchart for Developing an Entity Bean Using CMP
      5. Entity Bean Concepts
      6. Components of an Entity Bean
      7. Internal Classes and Interfaces of an Entity Bean
      8. Container-Managed Persistence
      9. EJB QL
      10. WebLogic QL (WLQL)
      11. Sample Program—Restaurant
      12. Summary
      13. Q&A
      14. Workshop
      15. Quiz
      16. Exercise
    6. Developing Entity Beans Using Bean-Managed Persistence
      1. Bean-Managed Persistence Concepts
      2. Components of an Entity Bean Using BMP
      3. Bean-Managed Persistence and Container-Managed Persistence—A Comparison
      4. Sample Program: Implementing the ItemBean Entity Bean in the Restaurant Application Using BMP
      5. Java Data Objects—An Alternative to Bean-Managed Persistence
      6. EJB to JSP Integration Tool
      7. MVC Application
      8. Summary
      9. Q&A
      10. Workshop
      11. Quiz
      12. Exercise
    7. Understanding JTA Transactions
      1. Introduction to Transactions
      2. Transaction Life Cycle
      3. ACID Properties
      4. Transaction Architecture
      5. Java Transaction API
      6. Transaction Attributes
      7. Transactions in WebLogic
      8. Summary
      9. Q&A
      10. Workshop
      11. Quiz
      12. Exercise
  8. Additional WebLogic Features
    1. Using the JMS API
      1. Introduction to Messaging
      2. JMS API
      3. JMS API Architecture
      4. WebLogic Support for JMS
      5. Life Cycle of a JMS Application
      6. Configuring Your Destination in WebLogic Server
      7. Sample Program
      8. Message-Driven Beans
      9. Summary
      10. Q&A
      11. Workshop
      12. Quiz
      13. Exercise
    2. Deploying Applications
      1. Before You Assemble the MVC Application
      2. Assembling Your MVC Application
      3. Deploying the MVC Application
      4. Running Your MVC Application
      5. Important Development Tips
      6. Troubleshooting
      7. Summary
      8. Q&A
      9. Quiz
    3. Debugging Applications
      1. Introduction to Debugging Techniques
      2. Debugging
      3. Assertion
      4. Tracing
      5. Logging
      6. Summary
      7. Q&A
    4. WebLogic Administration and Security
      1. Administering Your WebLogic Server
      2. WebLogic Security
      3. Summary
      4. Q&A
      5. Quiz
    5. Using WebLogic Tools
      1. Development Tools
      2. Compiler Tools
      3. Deployment Tools
      4. Administration Tools
      5. Summary
      6. Q&A
    6. Other Tools Supported by WebLogic
      1. jCOM Concepts
      2. Supporting Tools for jCOM
      3. COM to WebLogic Server Communication
      4. WebLogic Server to COM Communication
      5. XML Concepts
      6. XML Parser APIs
      7. Summary
      8. Q&A
      9. Workshop
      10. Quiz
    7. J2EE Connector Architecture
      1. Introduction to JCA
      2. JCA Concepts
      3. Resource Adapter (RA)
      4. System Contracts
      5. Application Contracts
      6. Deploying a Resource Adapter in WebLogic Server
      7. Configuring JCA Connection in WebLogic Server
      8. Sample Program Using the Common Client Interface
      9. Summary
      10. Q&A
      11. Workshop
      12. Quiz
  9. Bonus Day At a Glance
    1. Working with Web Services
      1. Introduction
      2. Web Services Concepts
      3. SOAP
      4. WSDL
      5. UDDI
      6. Web Services in WebLogic
      7. WebLogic Server 7.0 and JAX-RPC
      8. Deploying Web Services in WebLogic Server 7.0
      9. J2EE Web Services Versus .NET
      10. Summary
      11. Q&A
      12. Workshop
      13. Quiz
  10. Appendices
    1. Answers to the Quiz and Exercise Questions
      1. Day 1
      2. Day 2
      3. Day 3
      4. Day 4
      5. Day 5
      6. Day 6
      7. Day 7
      8. Day 8
      9. Day 9
      10. Day 10
      11. Day 11
      12. Day 12
      13. Day 13
      14. Day 14
      15. Day 15
      16. Day 16
      17. Day 18
      18. Day 20
      19. Day 21
      20. Day 22
    2. Installing and Customizing WebLogic
      1. Where to Get the WebLogic 7.0 Installable Files
      2. System Requirements
      3. Methods of Installation
      4. Configuring Your Domain Using the Configuration Wizard
      5. WebLogic Constituents and Directory Structure
      6. Steps after Installation
      7. Important Files
      8. Customizing Your Development Environment
      9. Configuring a Virtual Host for Your Application
      10. Setting Up Your HTTP Access Logs
      11. Setting Up Your WebLogic Server to Prevent Overloading with Phony Requests
      12. Summary
    3. Source Code for the MVC Application
      1. Listing for JSPs (Web Components)
      2. Listing of Servlet (Controller): AirlineTicketBookingServlet (Web Component)
      3. Utility Files (EJB Components)
      4. Constants Files (EJB Components)
      5. EJBs: Entity Beans (EJB Components)
      6. EJBs: Session Beans (EJB Components)
      7. Business Objects (EJB Components)
      8. Exception Files (EJB Components)
      9. Deployment Descriptors
      10. Batch Files
      11. SQL Script