Java 2 Unleashed

Stephen Potts / Alex Pestrikov  
Sams Publishing
Total pages
July 2002

Product detail

Title no longer available


This unique Java reference book will provide the following competencies to bring the intermediate Java developer advanced and specialized skills.

Table of Contents

(NOTE: Each chapter concludes with a Summary.)



1. Programming Interconnected Computers.

A Brief History of Connectivity. TCP/IP and Java. Understanding Modern Interconnection Technologies. The Design of the Cruise Ticket Application.

2. Creating Applications with Remote Method Invocation (RMI).

Understanding RMI. Converting an Application to RMI. Creating an RMI Version of the CruiseList Application.

3. Creating Applications with Java API for XML Parsing (JAXP).

Understanding XML. XML Related Tools. Creating an XML Document. Creating a Document Type Definition (DTD). Parsing with the Simple API for XML (SAX). Parsing with the Document Object Model (DOM). An XML Version of the CruiseList Application.

4. Application Development with JSP and Servlets.

HTTP Basics. Your First JSP Page. JSP Tag Types. Form Processing with JSP. Your First Servlet. When Do We Use JSP and When Do We Use Servlets? Using JSP and Servlets Together.


5. Enterprise JavaBeans (EJB).

Understanding the EJB Approach. EJB Internals. Developing the Cruise Booking Application with EJB. Developing Stateless Session Beans. Developing Stateful Session Beans. Developing Entity Beans. Building and Running the Cruise Booking Application. EJB Container Services.

6. Message-Driven Beans (MDB).

Understanding Message-Driven Beans (MDB). Developing and Deploying MDBs. How MDBs Work. The Point-to-Point Model. Creating a GUI-Based Application. Handling Errors in MDBs.

7. Java Message Service (JMS).

Understanding JMS. Building the Cruise Ticket System with JMS. The Publish/Subscribe Model.

8. Approaches for Choosing the Right Technology.

The Challenge of Technology Selection. Measuring Software Characteristics. Evaluating Distributed Technologies. Comparing Java Technologies with CORBA.


9. Web Services.

Understanding the Web Service Approach. Understanding SOAP. Creating a Payment Web Service. Understanding WSDL. Understanding UDDI. Integrating with .NET.

10. JDBC and Databases.

Why JDBC? How JDBC Works. Batch Processing. JDBC and WebLogic Server. JDBC Transaction Management. Enhancements in JDBC 3.0.

11. Java Naming and Directory Interface (JNDI).

The Need for a Naming Service API. Understanding JNDI. How Naming Services Work. Finding the JNDI Provider. JNDI and WebLogic Server. Precautions When Using JNDI.

12. Processing Speech with Java.

Understanding Java Speech. Creating and Allocating the Speech Engine. Speech Synthesis. Speech Recognition.

13. JavaMail.

Understanding JavaMail. How JavaMail Works. Creating a Simple SMTP Application. Creating a JavaMail-Based CruiseList Application. Retrieving Specific E-mail Messages. Programing an Event-Driven E-mail Application.

14. Serial Port Communications.

Understanding the RS-232 Standard. The Java Communications API. Sending Data over the Serial Port.


15. Drawing with Java 2D.

Understanding Java 2D. Drawing Text on the Screen. Drawing Graphics. Manipulating Images. Combining Text, Graphics, and Images.

16. Java 3D Graphics.

Understanding Three-Dimensional (3D) Programming. The Major Objects in the Java 3D API. Adding Motion to a Java 3D Application. Adding Lighting to Your Java 3D Program. Texture Mapping in Java 3D.

17. The Java Media Framework (JMF) and the Java Advanced Imaging (JAI) API.

Understanding Time-Based Media. Decoding Time-Based Media with JMF. Programming with the Advanced Imaging API.

18. Processing Sound with Java.

The Principles of Sampled Sound. The Principles of MIDI Sound. The Java Sound API. Playing Sound with Java. Capturing Sound with Java.


19. JavaBeans and the Java Event Model.

Understanding JavaBeans. Programming with the Java Event Model. Developing a Simple JavaBean. Methods, Events, and Properties.

20. Architectural Models and Frameworks

The Need for Frameworks. What Is a Framework? Overview of the MVC Pattern. An MVC Implementation in the Jakarta Struts Framework.

21. Design Patterns in Java.

The Need for Patterns. Java Patterns. EJB Design Patterns.

22. Exceptions and Debugging.

The Importance of Exception Handling. Understanding the Java Exception Strategy. Catching Exceptions in Java Programs. Common Exception-Handling Practices. The Right Way to Handle Exceptions. Translating Exceptions. Exception Chaining Without Losing Information. Exception Chaining in JDK 1.4.

23. Java Security.

Introduction to Java Security. Java Sandbox Model. Java Secure Sockets.

24. Multithreading Applications in Java.

Introduction to Threads. Coordinating Threads. Creating Thread-Safe Applications. Thread Management.

25. Java Internationalization.

Fundamentals of Internationalization. Using Resource Bundles for Text. Using ResourceBundle Classes to Store Objects. Internationalizing Dates and Times. Internationalizing Numbers and Currency.

26. Persistence and Cloning.

Object Serialization. Object Externalization. Cloning to Achieve Serialization. Security and Serialization.

27. Polymorphism and Inheritance.

Why Polymorphism and Inheritance Are Important. The Internals of Polymorphism. Programming with Polymorphism. Inheritance, Composition, or Brute Force. Disadvantages of Inheritance and Polymorphism. Concrete or Abstract Base Classes. Type-Safe Downcasting and Inheritance. Polymorphic Programming with Runtime Type Identification. Polymorphic Programming with Reflection. Inheritance and Handles.

28. Code Organization and Deployment.

Understanding Packages. Java Archive (JAR) Files. The Java API Documentation Generator.


Appendix A. Source Code Listings for Utility Programs Used in This Book.

The WebLogic/Cloudscape Database Loader. The Access Version of the Database Loader. TicketRequest2.

Appendix B. Downloading and Installing WebLogic Server.

Back Cover

Java Unleashed is a book for the Java programmer who wants to move to a senior-level programming role. This book prepares the reader to become involved with project design earlier and to interact with senior staff on larger design issues. It contains the rules of thumb driven by performance and technical considerations. Parts 1 and 2 cover distributed technologies like Enterprise Java Beans (EJB), Java Message Services (JMS), and RMI. Part 3 enables the reader to build systems that are integrated. Part 4 covers the advanced features of the java Platform. Optional APIs such as media, security, and transactions covered in Part 5.


Steve Potts is an independent consultant, author, and Java instructor in Atlanta, Georgia (United States). Steve received his computer science degree in 1982 from Georgia Tech. He has worked in a number of disciplines during his 20-year career, with manufacturing being his area of greatest expertise. His previous books include Special Edition Using Visual C++ 4 and Java 1.2 How-To. He can be reached via e-mail at

Alex Pestrikov is an independent consultant specializing in J2EE technologies. He graduated from the University of Bridgeport in Connecticut. Alex has been involved in a number of J2EE projects in both the United States and Canada, most recently consulting for the government of Ontario. He lives with his fiancée, Stephanie, in Toronto and can be reached at

Mike Kopack is a graduate of the Georgia Institute of Technology, where he earned a bachelor of science degree in computer science. Mike is a Sun Certified Java Programmer with experience dating back to JDK 1.0.2. He specializes in server-side Web technologies. His prior work has involved building dynamic Web site content management systems for multibillion-dollar corporations. Currently he works as a software engineer for ISX Corporation in Atlanta, Georgia.