J2EE and Beyond: Design, Develop, and Deploy World-Class Java Software

J2EE and Beyond: Design, Develop, and Deploy World-Class Java Software

by Art Taylor


$50.50 $59.99 Save 16% Current price is $50.5, Original price is $59.99. You Save 16%.


Technologies, architecture, and Java patterns for building robust multi-tier J2EE applications.

  • All you need to build robust, multi-tier J2EE applications
  • Presents in-depth coverage of J2EE technologies, architecture, and Java design patterns
  • Covers Web services, XML, security, messaging, networking, and much more
  • Complete case study covers the design, construction, and integration of every application tier

To build high-performance Web applications and services with J2EE, developers need deep mastery over J2EE's diverse technologies and effective architectural strategies for designing distributed multi-tier applications. In J2EE and Beyond, a leading J2EE developer delivers both. Art Taylor ranges far beyond JSPs, EJBs, and servlets, offering practical insight into many crucial J2EE APIs, and presenting powerful design patterns that illuminate the effective use of J2EE 1.3 and J2SE 1.4. Taylor's example-rich coverage encompasses all this, and more:

  • JAXM, JAXP, and other J2EE APIs for XML and Web services development
  • Java security APIs: JSSE for SSL support, JCE for cryptography, and JAAS for authentication and authorization
  • Effective strategies for utilizing RMI and Java networking
  • The latest enhancements to JDBC database connectivity
  • Making the most of logging and other J2SE 1.4 enhancements
  • Java messaging (JMS), directory services (JNDI), and much more

J2EE and Beyond also includes a complete case study demonstrating how every tier, each core J2EE technology, and related technologies such as XML all come together to create a J2EE app

Product Details

ISBN-13: 9780131417458
Publisher: Prentice Hall Professional Technical Reference
Publication date: 12/23/2002
Pages: 1050
Product dimensions: 6.88(w) x 9.30(h) x 1.43(d)



Within a few short years, the World Wide Web and its associated Internet or Net development has permeated our culture so that we now consider it commonplace. From Web browsers running on the ubiquitous PC in the United States to the Internet cafe in Bangalore India, the Web is everywhere. And despite the fickle currents of national economies and the fates of dubious technical startups, the most common and the most promising application development platform continues to be the Web.

Web technologies abound, and for a developer or manager who must make a key decision regarding the best Web development platform, the decision is in no way simple or straightforward. But as many have found in the past few years, there is one choice that provides a rich set of technologies, flexible development and deployment options, and a robust, mature, and secure infrastructure. That choice is the Java language offering for the enterprise, commonly known as the Java 2 Enterprise Edition, or J2EE.

J2EE is a superset of Java, both a language and a set of technologies that extends over 3,000 APIs at this writing. As such, J2EE cuts a wide swath through the Java APIs so that a comprehensive discussion of J2EE could require volumes. But by being concise and focusing on the commonly used technologies, this book provides the succinct coverage of J2EE APIs that developers require.

J2EE is a development environment for creating distributed applications. These are applications which are composed of components running on one or more servers. In developing J2EE applications, we make logical distinctions on the types of components we create. We distinguish between these components asseparate tiers of development. In the first section of this book we will discuss these logical tiers in some detail, but in order to understand the design of this book just know that they are as follows.

  • Resource tier: Stores the persistent data for the application.
  • Integration tier: Interacts with the resource tier and business tier.
  • Business tier: Encapsulates business logic of the application.
  • Presentation tier: Prepares the application presentation for the client tier.
  • Client tier: Interacts with the user, the client of the application.

Not every application uses every tier. To add to the confusion, many architectural discussions refer to only three of these tiers, a client tier, a middle tier and a resource (data) tier. But to truly understand J2EE and be able to use it correctly, a developer should understand all of these tiers of development and how J2EE packages can be used on each of them. That is the approach used in this book.

The J2EE development paradigm differs from that of client/server architectures where a client application communicates directly with a database resource (the resource tier) and offers a variety of technologies. A J2EE developer therefore needs to understand both the technology of J2EE and the proper architectural strategies for designing multi-tiered, distributed J2EE applications.

This book provides the information the prospective J2EE developer or architect needs to know. Sections deal with the architecture and design of solutions with J2EE, J2EE technology, and J2EE applications. The goal is to provide significant technical coverage in each section and to use a consistent set throughout. This book goes beyond Java Server Pages (JSPs), Enterprise JavaBeans (EJBs), and servlets that many J2EE books are limited to and covers key J2EE APIs and packages, such as

  • Java Web Services, SOAP (JAXM)
  • Java XML (JAXP)
  • Relational database connectivity (JDBC)
  • Remote Method Invocation (RMI)
  • Java networking
  • Logging
  • Java Naming and Directory Interface (JNDI)
  • Java email (JavaMail)
  • Servlets
  • Java Server Pages (JSP)
  • Enterprise JavaBeans (EJB)
  • Java messaging (JMS)
  • SSL support (JSSE)
  • Cryptography (JCE)
  • Java security
  • Security Authentication and authorization (JAAS)

GUI development (Swing)

This broad coverage explains the book's bulk and also provides value for the reader. While it would be easy to write a complete book about any of these APIs, the goal of this book was to provide a large and significant portion of what the developer needs to know to actually use these APIs and packages. The purpose of each core technology is explained and demonstrated through both minimal examples (just what is needed to use the technology) and more complex examples, many of which are demonstrated as part of a complete application.

Creating a solid object-oriented design is an important part of creating a good J2EE-based application. Since the J2EE technology and object-oriented development in general may be unfamiliar to many readers, this book devotes several chapters to the discussion of good architectural design with J2EE. These chapters include a discussion of object-oriented modelin development.

Application of Java design patterns is an important part of good J2EE development. This book provides a discussion of Java design patterns and then applies them when appropriate throughout the examples in the text.

Book Sections

This book is divided into three parts, starting with architecture and design and proceeding through a detailed discussion of a large swath of important J2EE APIs. These sections are as follows.

  • Part 1: J2EE Architecture and Design
  • Part 2: Core J2EE Technology
  • Part 3: J2EE Sample Applications

Part 1, J2EE Architecture and Design, covers J2EE architecture and design, offering practical steps for creating a solid J2EE architecture based on user requirements. It includes several chapters on object-oriented analysis and design applied to J2EE and a set of case studies that provide an example of how to architect a J2EE system.

Part 2, Core J2EE Technology, provides extensive coverage of the J2EE packages identified above. Basic introductory code examples are used to introduce the package and then more complex code examples, many of which are used by examples in later sections, are used to more detailed information on how to use the package.

Part 3, J2EE Sample Applications, builds on the work of the previous sections to demonstrate the use of J2EE packages to develop two applications: a shopping cart application and a discussion group application. The shopping cart application uses the Struts framework, servlets, JSPs and EJBs. Code examples from the previous chapters are used in the creation of this application.

The development of a discussion group application using JSPs, tag libraries, and Java Bean components is also shown. Users are allowed to enter and modify their own messages and add messages to a message thread.

Covering J2EE APIS

In determining the order in which to cover the numerous J2EE APIs, we will use the option that provides the most meaningful coverage for someone who is relatively unfamiliar with J2EE technologies and packages. Using the multiple tiers of development as our guide mentioned previously, we start with the APIs most commonly used on the integration tier of development and proceed from there back to the client tier. Since most J2EE applications must manage some form of data and must be able to persist this data (the application state) as needed, we begin our discussion with the J2EE package used for interacting with relational databases, JDBC. Since managing security has become a concern of many organizations (and rightly so), we then move our discussion to Java security and the related security APIs (JAAS, JSSE, JCE).

Naming services provide a convenient facility for accessing resources in J2EE applications and are discussed in the chapter on the JNDI package. A good logging API was something lacking in early J2EE releases and has now become part of the J2EE collection. Both the core Java logging package is discussed as well as the Apache log4j package.

Much has been written in the technical press about XML and SOAP. These technologies and protocol standards represent some very valuable facilities for managing data interchange, moving data between components and applications. We will spend several chapters discussing XML and will use XML related APIs in examples throughout the text.

Our discussion then moves on to various APIs and J2EE packages which are useful on the business tier—Java networking, Remote Method Invocation (RMI), Web services and XML messaging with Java (JAXM), Java messaging with JMS and using email with Java using the JavaMail package. EJBs are then discussed across a number of chapters in the text.

Once we understand what can be done on the business tier, we spend several chapters discussing the presentation tier (Web tier) components J2EE provides. This involves coverage of JSPs and servlets. As you would expect, these applications build on the material presented in the previous chapters.

Finally, the client tier is discussed—how to use Java APIs and J2EE to create client tier, GUI applications. Like the presentation tier code shown, the client tier code builds on the previous chapters, demonstrating application code that accesses databases using JDBC, and uses RMI to communicate with remote objects that encapsulate data access functionality.

Code Examples

Working code examples are presented throughout this book. These code examples provide a sample of how specific technology can be used. They range from simple, minimal implementations of a J2EE package to more complex components that are part of a complete sample application. As a reader learning J2EE, you may want to use these code samples to supplement your learning experience. These examples are available at the Web site for this book. On that same page you can find an email link to contact me, the author.

Who Should Read this Book

This book is intended for the Java developer who is somewhat familiar with the Java language and wants to learn about developing applications using the various J2EE packages. Knowledge of Java object-oriented concepts (classes, objects, interfaces) and how to write Java programs is required. Knowledge of servlets, JSPs, EJBs, XML, Java XML Messaging (SOAP), Java security, and the various other packages and technologies of J2EE are not required—that's what this book is for.

Customer Reviews

Most Helpful Customer Reviews

See All Customer Reviews