You are previewing BEA WebLogic Workshop 8.1 Kick Start: Simplifying Java Web Applications and J2EE.
O'Reilly logo
BEA WebLogic Workshop 8.1 Kick Start: Simplifying Java Web Applications and J2EE

Book Description

BEA WebLogic Workshop 8.1 Kick Start shows you how to make J2EE programming easier, providing the fastest path to productivity with BEA WebLogic Workshop 8.1. The authors show how Workshop leverages the power of BEA WebLogic Platform 8.1, including WebLogic Server, WebLogic Portal, and WebLogic Integration.

With BEA WebLogic Workshop 8.1 Kick Start, you'll learn to build J2EE applications and see how each concept works within a real-world online casino application developed over the course of the book. You'll see how Workshop 8.1 facilitates every step of the development process, from design to deployment. The authors' expert insights and tips, along with dozens of practical examples that you can put to use immediately, will have you up and running at full speed in nothing flat.

The included CD-ROM contains the Developer's Edition of BEA WebLogic Platform 8.1 (including WebLogic Workshop 8.1) and all the sample code and examples, with a complete version of the casino application developed over the course of the book. In addition you can view the entire book in searchable electronic form.

Table of Contents

  1. Copyright
  2. About the Authors
  3. Dedications and Acknowledgments
    1. From Al Saganich
    2. From Tom Hardy
    3. From Lawrence Kaye
    4. From Sunila Srivatsan
  4. We Want to Hear from You!
  5. Foreword
  6. Introduction
    1. About This Book
    2. How This Book Is Organized
      1. Chapter 1: WebLogic Workshop, WebLogic Platform, and the J2EE Landscape
      2. Chapter 2: Getting to Know the WebLogic Workshop IDE
      3. Chapter 3: WebLogic Workshop Application Development Basics
      4. Chapter 4: Developing with Page Flow
      5. Chapter 5: Working with the Debugger
      6. Chapter 6: Introduction to WebLogic Workshop Controls and Components
      7. Chapter 7: Using the NetUI Tag Library Toolbox to Develop Sophisticated JSPs
      8. Chapter 8: Advanced Control Development
      9. Chapter 9: Working with Web Services
      10. Chapter 10: Handling Data in WebLogic Workshop: Working with Schema and XML Beans
      11. Chapter 11: Working with Workflows
      12. Chapter 12: Overview of Portal Applications
      13. Chapter 13: Creating Advanced Portlets
      14. Chapter 14: Securing Access in WebLogic Workshop: Working with SSL and Role-based Security
      15. Chapter 15: Taking Your Applications from Development to Production
    3. Conventions Used in This Book
    4. Code and Updates to This book
  7. 1. WebLogic Workshop, WebLogic Platform, and the J2EE Landscape
    1. Web Applications and the J2EE Landscape
    2. What Is WebLogic Workshop?
    3. WebLogic Workshop and J2EE
      1. The View Component
      2. The Controller Component
      3. The Model Component
    4. Creating a Sample Workshop Application with WebLogic Platform
      1. WebLogic Server
      2. WebLogic Portal
      3. WebLogic Integration
    5. In Brief
  8. 2. Getting to Know the WebLogic Workshop IDE
    1. Overview of the WebLogic Workshop Window Layout
    2. Working with WebLogic Workshop Applications
      1. Creating an Application
      2. Viewing an Application
        1. The Application Pane
        2. The Files and Document Structure Panes
    3. Visual Component Development
      1. Adding Items via the Palette
      2. Modifying Existing Items via the Property Editor
      3. Defining Interactions Between Items in Design View
      4. Linking Items to External Components via the Data Palette
    4. Code-level Development
      1. Accessing the Source View Pane
      2. Navigating Through the Code
      3. Editing the Code
        1. Additional Editing Tools for Java Code
        2. Additional Editing Tools for JSP Code
    5. Building and Running Applications
      1. Starting BEA WebLogic Server
      2. Deploying Applications
      3. Using the Test Browser
    6. Debugging Applications
      1. Setting Breakpoints
      2. Clearing and Disabling Breakpoints
      3. Debug Windows
      4. Continuing Execution
    7. In Brief
  9. 3. WebLogic Workshop Application Development Basics
    1. WebLogic Workshop Programming Basics
      1. The WLW Programming Model and Structured Programming
      2. Page Flow Fundamentals
      3. Portals
      4. Web Services and Business Process Integration
    2. Creating Applications and Projects
      1. Workshop Applications Breakdown
      2. Workshop Projects
      3. Accessing and Exposing Data via Controls
      4. Adding Controls to Page Flows
      5. Accessing Databases with Rowsets
      6. Adding and Deleting with Rowsets
      7. Creating Simple Rowset Controls
    3. Deploying and Configuring Applications
      1. Building Applications
      2. Mapping Applications and Projects to Directories
    4. In Brief
  10. 4. Developing with Page Flow
    1. Creating Page Flow Applications with WebLogic Workshop
      1. Creating a Page Flow Application
      2. Adding Pages to a Page Flow Application
      3. Adding Actions to a Page Flow
      4. Forward Objects and Linking Pages
      5. Branching Page Flows
    2. Data Binding with Page Flow
      1. The pageFlow Attribute
      2. The globalApp Attribute
      3. The actionForm Attribute
      4. The request Attribute
      5. The url Attribute
      6. The session Attribute
      7. The container Attribute
      8. The pageContext Attribute
      9. The application Attribute
    3. Passing Data with Form Beans
      1. Creating a Form Bean
      2. Using Form Beans
      3. Form Bean Validation
        1. Creating an Error Message
        2. Add a <message-resource> Tag
        3. Add a <validation-error-page> Tag
        4. Display the Errors in a JSP
        5. Add a validate Method
    4. In Brief
  11. 5. Working with the Debugger
    1. Debugging Applications in Workshop
    2. Setting Debugging Properties for a Project
      1. Smart Debugging
      2. Building Before Debugging
      3. Pausing All Threads After Stepping
    3. Working with Breakpoints
      1. Line and Taglib Breakpoints
      2. Method Breakpoints
      3. Exception Breakpoints
    4. Debugging Applications
    5. Using Debugging Commands
      1. Step Into
      2. Step Over
      3. Step Out
      4. Continue
      5. Export Threads
    6. Debugging Windows
      1. Locals Window
      2. Watch Window
      3. Streams Window
      4. Callstack Window
      5. Threads Window
      6. Breakpoints Window
    7. In Brief
  12. 6. Introduction to WebLogic Workshop Controls and Components
    1. Control Concepts
      1. Control Runtime Architecture
      2. Component Types
      3. Control Underpinnings
      4. Control Methods
    2. Using Existing Controls
      1. Handling Exceptions
    3. Rowset and Database Controls
      1. Database Control Basics
      2. Selecting Data
      3. Parameter Substitution
      4. Updates, Inserts, and Deletes
      5. Testing a Database Control
      6. Custom Java Controls
    4. In Brief
  13. 7. Using the NetUI Tag Library Toolbox to Develop Sophisticated JSPs
    1. NetUI HTML Tags
      1. Form Tags
      2. Image Tags
    2. Presenting Complex Data Sets in JSPs
      1. The Flexibility of the Repeater Tags
      2. Ease of Use in CellRepeater Tags
      3. The Power of Grid Tags
    3. Providing a Common Look and Feel in JSPs
      1. Defining Template Pages
      2. Applying Templates
    4. Nested Page Flows
      1. Creating a Nested Page Flow
      2. Nested Page Flow Architecture
    5. In Brief
  14. 8. Advanced Control Development
    1. Control Life Cycle
    2. Control Events
    3. Controls and Transactions
    4. Control Projects and Packaging
    5. Building and Using EJB Controls
    6. Comparing Controls, EJBs, and JavaBeans
      1. Controls Versus JavaBeans
        1. Design and Development
        2. Packaging
        3. When to Use JavaBeans Versus Controls
      2. Controls Versus EJBs
        1. Design and Development
        2. Entity Behavior
        3. Transaction Behavior and Support
        4. Mixing and Matching Models
      3. Conclusion: When to Use Controls Versus EJBs
    7. In Brief
  15. 9. Working with Web Services
    1. Web Services Concepts
    2. Understanding SOAP, WSDL, and UDDI and Their Place in WebLogic Workshop
      1. SOAP
      2. WSDL
      3. UDDI
    3. Developing Web Services
      1. Exposing Web Services Beyond Workshop
      2. Using Web Services Within Workshop Applications
      3. Using Web Services from Standalone Applications
    4. Conversations
    5. Web Service Security
      1. The <wsSecurityIn> Element
      2. The <wsSecurityOut> Element
      3. Associating Security with Web Services
    6. In Brief
  16. 10. Handling Data in WebLogic Workshop: Working with Schema and XML Beans
    1. Representing Data with XML
      1. Schema
      2. XML Parser APIs
      3. XQuery
    2. Accessing and Manipulating XML Data with XML Beans
      1. Setting Up XML Beans in WebLogic Workshop
        1. Creating a Schema Project
        2. Creating XML Beans Interfaces
        3. What If I Don't Have a Schema for My XML Document?
      2. Invoking XML Beans
      3. Creating XML Beans
      4. Retrieving and Modifying Data from XML Beans
    3. Navigating Through XML Data with XPath and XQuery
      1. Overview of XPath
        1. Locating Elements in a Document
        2. Filtering on the Elements
        3. Processing the Element Data
        4. Where to Get More Data
      2. Using XPath Expressions with XML Beans
      3. Overview of XQuery
        1. Iterating over Data
        2. Defining Functions
        3. Where to Get More Data
      4. Using XQuery Expressions with XML Beans
    4. Transforming XML Data
    5. In Brief
  17. 11. Working with Workflows
    1. Introduction to the Business Management Process
    2. Introduction to Workflows
    3. Developing Basic JPDs
      1. Using Workshop to Create JPDs
      2. Monitoring JPD Instances
      3. Transaction Demarcation in a JPD
      4. Exception Handling in a JPD
    4. Using Message Brokers
      1. Message Broker Concepts
      2. Event Generators
      3. Channel Files
    5. Integrating with Controls
      1. Additional Built-in Controls in WebLogic Integration
      2. Application View Concepts
        1. Adapters
        2. Application Views
        3. Application View Controls
      3. Trading Partner Communication
    6. In Brief
  18. 12. Overview of Portal Applications
    1. Introduction to Portal Applications
      1. Portlets
      2. Pages
      3. Books
      4. Look and Feel
      5. Desktops
    2. Creating Portal Applications
      1. Creating the Application
      2. Adding Pages and Books to a Desktop
    3. Surfacing Applications with Portlets
      1. Creating a Portlet from a JSP
      2. Creating a Portlet from a Page Flow
      3. Creating a Portlet from a Control
    4. Portal Look and Feel
      1. Shells
      2. Layouts
      3. Skins and Themes
      4. Skeletons
    5. In Brief
  19. 13. Creating Advanced Portlets
    1. Inter-portlet Communication
      1. JSP Processing
        1. Modifying the Sender
        2. Modifying the Receiver
      2. Using Backing Files
    2. Personalizing Portlets
      1. User Profiles
        1. Creating User Profiles
        2. Accessing User Profiles
      2. Using Rules to Personalize Content
        1. User Segments
        2. Content Selectors
    3. Controlling Portlet State
      1. Backing Contexts
    4. In Brief
  20. 14. Securing Access in WebLogic Workshop: Working with SSL and Role-based Security
    1. The Need for Security in the Enterprise
      1. Who Are You?
      2. Is Anyone Else Listening?
    2. Secure Socket Layer Communications
      1. How SSL Works
      2. Authenticating the Client
        1. Basic Authentication
        2. Two-Way SSL
      3. Configuring SSL
        1. Acquiring and Installing Digital Certificates
          1. Using the BEA Demonstration Certificates
          2. Using Sun Microsystems Keytool Utility
          3. Using the BEA WebLogic Server CertGen Utility
        2. Enable SSL in WebLogic Server
        3. Configuring Encrypted Access to Web Resources
        4. Specifying HTTPS Parameters for the Resource
        5. Installing Certificates in the Browser
      4. Trade-offs of Using SSL
    3. Declarative Role-based Security
      1. Determining What Roles Should Have Access
      2. Mapping Roles to Principals
      3. Authenticating Users
      4. Testing Role-based Security
    4. In Brief
  21. 15. Taking Your Applications from Development to Production
    1. Building the Infrastructure for the Production Environment
    2. Creating a Production Domain
    3. Starting a Server in Production Mode
    4. Preparing Applications for a Production Environment
      1. Deploying As an Archived Format
      2. Deploying As an Exploded Directory Format
    5. Creating Necessary Resources in Production
      1. Database Tables
      2. JMS Queues
      3. Security Role Restrictions for Controls
    6. Deploying Applications to the Production Server
      1. Using the Administration Console
      2. Using the Command-Line Utility
    7. In Brief