You are previewing JavaBeans Unleashed.
O'Reilly logo
JavaBeans Unleashed

Book Description

JavaBeans Unleashed is a practical, professional, and comprehensive guide to JavaBeans. It assumes you are an experienced Java programmer but have little experience developing network and client/server applications. This book also contains an introduction to Enterprise JavaBeans, a new Java specification from Sun. JavaBeans works with the most popular distributed object protocols, so CORBA (the distributed object leading protocol from the Object Management Group), Java IDL (Interface Definition Language allows Java apps access to CORBA), and JNDI (Java Naming and Directory Interface which allows Java applications to access files on any network server) are also covered.

Table of Contents

  1. Copyright
  2. About the Authors
  3. Acknowledgments
  4. Introduction
  5. Getting Started
    1. Introducing JavaBeans and the Enterprise
      1. And Then Came the Web
      2. The Java Programming Language: A Brief Overview
      3. Objects Versus Components
      4. What Exactly Is a Java Bean?
      5. Summary
    2. Tools for Getting Started
      1. The Java2 Software Development Kit (SDK)
      2. The Java Plug-In
      3. The JavaBeans Development Kit (BDK) 1.1
      4. Integrated Development Environments
      5. Summary
  6. Creating Beans
    1. Building Java Components
      1. Using the Java Development Kit (JDK)
      2. Using the Beans Development Kit (BDK)
      3. Summary
    2. The JavaBeans Component Architecture
      1. When an Object's a Bean
      2. Definition of a Bean
      3. Bean Properties
      4. Bean Events
      5. Bean Methods
      6. Introspection
      7. Customization
      8. Persistence
      9. Transforming an Applet into a Bean
      10. Summary
    3. Persistent Storage
      1. JavaBeans Serialization
      2. Using Object Streams
      3. Versioning Beans
      4. Summary
    4. Event Model
      1. Using Java's Delegation Event Model
      2. Communicating Events Created by Java Components
      3. Communicating Events Created by JavaBeans
      4. Summary
    5. JavaBeans as Graphical User Interface Components
      1. Using Control Beans
      2. Extending Java's Canvas Class
      3. Creating an Image Button Bean
      4. Summary
    6. Beans as Containers
      1. Containers
      2. Extending the java.awt.Panel Class
      3. Bean Contexts
      4. The java.beans.beancontext.BeanContext Interface
      5. The java.beans.beancontext. BeanContextServices Interface
      6. Completing the MyContainer2 Bean
      7. Collections
      8. Collections Framework
      9. Iterating Through Collections
      10. Summary
    7. Invisible Runtime Beans
      1. Invisible JavaBeans Components
      2. Summary
    8. Bean Security
      1. Introduction
      2. Java Security API
      3. Signed Code
      4. Using Digitally Signed Beans
      5. Distributing Signed Beans
      6. Summary
  7. Enterprise Through the Desktop GUI
    1. Cut-and-Paste
      1. The Need for a Clipboard
      2. Implementing Copying
      3. Implementing Pasting
      4. Data Flavors
      5. The java.awt.datatransfer. DataFlavor class
      6. Creating an Example Program
      7. Creating Another Example Program
      8. Summary
    2. Drag-and-Drop
      1. DataFlavors and Actions
      2. Creating a Draggable Component
      3. The DragSource Object
      4. The DragGestureRecognizer
      5. The DragGestureListener
      6. The Transferable Object
      7. The DragSourceListener
      8. Flow Review
      9. Creating a Droppable Component
      10. Data Transfer
      11. Creating an Example Program
      12. Summary
    3. Java Naming and Directory Interface (JNDI)
      1. Naming Interface
      2. The Directory Interface
      3. Summary
  8. Enterprise and Data
    1. Java Database Connectivity (JDBC)
      1. Comparing JDBC and ODBC
      2. JDBC Supported Drivers
      3. Using the JDBC-ODBC Bridge
      4. Retrieving Data Using JDBC
      5. Summary
    2. InfoBus
      1. Overview of the InfoBus Architecture
      2. Book Title Search Demo Overview
      3. Overview of the InfoBus Process for Data Exchange
      4. Summary
  9. Enterprise and Network Protocols
    1. Internet Communication Using Sockets (TCP/IP)
      1. Communicating Over Networks
      2. Using TCP/IP
      3. Using Network Services
      4. Using Sockets
      5. Using Internet Addresses
      6. Creating Beans Using UDP
      7. Using TCP
      8. Creating the TelnetServerInterface Bean
      9. Packaging the Beans into a JAR
      10. Testing the Telnet Beans
      11. Hand Coding Applications Using JavaBeans
      12. Running Your Telnet Applications
      13. Summary
    2. Remote Method Invocation (RMI)
      1. Java Distributed Object Model
      2. Creating an RMI Application
      3. Summary
    3. Java Remote Method Protocol (JRMP)
      1. Network Programming
      2. RMI Background
      3. Creating Server and Client Programs Using RMI
      4. The RMI Classes
      5. Creating Another Pair of RMI Server and Client Programs
      6. RMI Exceptions
      7. Summary
    4. CORBA: Using Java IDL
      1. CORBA
      2. Java IDL
      3. Create a CORBA Application
      4. Implementing Data Code
      5. Summary
    5. Corba IDL
      1. CORBA's Main Points
      2. Building CORBA Applications
      3. Developing a Client Application
      4. Writing the Server Code
      5. Compiling and Running the Hello World Application
      6. Summary
    6. Java/CORBA Development Using Caffeine
      1. The Basics of Caffeine
      2. The Caffeine Development Process
      3. The Caffeine URL Name Service
      4. A URL-Naming Scenario
      5. A Caffeine Version of HelloWorld
      6. The Caffeinated HelloWorld Server
      7. Compiling the Client and Server Programs
      8. Running the Client and Server Programs
      9. Summary
  10. Enterprise Client/Server Computing
    1. Developing Multitier Applications Using JavaI
      1. Multitier Application Architecture
      2. Designing Thin Java Client Applications for Network Computers
      3. Summary
    2. Using Enterprise JavaBeans
      1. Client/Server History
      2. Enterprise JavaBeans and Extensible Application Servers
      3. Types of Enterprise JavaBeans
      4. Creating Server-Side Beans: The Home Interface
      5. Using Server-Side Beans: The Remote Interface
      6. Summary
  11. Deploying Beans to the Enterprise
    1. Introspection
      1. Reflection API
      2. Introspection
      3. Summary
    2. Customization
      1. Displaying a Bean Icon
      2. Controlling Visible Properties
      3. Providing Custom Text-Based Property Editors
      4. Providing a Bean Customizer
      5. Summary
    3. International Beans
      1. Introduction
      2. Creating Global Beans
      3. Localizing Objects
      4. Writing the GlobalBean Bean
      5. Summary
    4. Beans as ActiveX Components
      1. Using the JavaBeans Bridge for ActiveX
      2. Summary
    5. JavaBeans Activation Framework (JAF)
      1. Data Items, Commands, and JavaBeans
      2. The JavaBeans Activation Framework (JAF)
      3. ActiveBean Example
      4. SimpleContainer JAF-Compliant Container Example
      5. Summary
    6. Java Multimedia Programming
      1. Using the Multimedia APIs
      2. Summary
    7. 3D Beans
      1. Using Java 3D
      2. Building a Java 3D Bean
      3. Summary
  12. Index