J2EE(TM) Tutorial, The (2nd Edition)

3.2 avg rating
( 10 ratings by Goodreads )
 
9780321245755: J2EE(TM) Tutorial, The (2nd Edition)

The J2EE™ Tutorial, Second Edition , is the complete guide to all major components of the Java 2 Platform, Enterprise Edition (J2EE) version 1.4. Written by members of the J2EE platform team at Sun Microsystems, this is the task-oriented and example-driven book that will have new and intermediate Java programmers building J2EE applications right away.

The first chapters introduce the J2EE 1.4 platform architecture and APIs, the Sun Java System Application Server Platform Edition 8, and the basics of working with XML and Web applications. The greater part of the book is devoted to describing and demonstrating the Java XML, Web-tier, and Enterprise JavaBeans technologies and platform services. Extensive examples and case studies show you how to put these technologies to work in the real world.

The technologies and services detailed include:

  • Java API for XML Processing (JAXP)
  • Java API for XML-Based RPC (JAX-RPC)
  • SOAP with Attachments API for Java (SAAJ)
  • Java API for XML Registries (JAXR)
  • Java Servlet
  • JavaServer Pages (JSP)
  • JSP Standard Tag Library (JSTL)
  • JavaServer Faces
  • Internationalization and localization
  • Enterprise JavaBeans (EJB)
  • Transactions
  • Resource connections
  • Security
  • Java Message Service API (JMS API)

The J2EE™ Tutorial, Second Edition, will give you a head start in developing and deploying J2EE applications.

The accompanying CD-ROM includes the tutorial examples (binary and source code) and the J2EE Software Development Kit, Enterprise Edition 1.4 (J2EE 1.4 SDK), which contains the Sun Java System Application Server Platform Edition 8, Java 2 Software Development Kit (J2SE SDK), and BluePrints sample applications.



"synopsis" may belong to another edition of this title.

About the Author:

Stephanie Bodoff is a staff writer at Sun Microsystems. In previous positions she worked as a software engineer on distributed computing and telecommunications systems and object-oriented software development methods. Since her conversion to technical writing, Stephanie has documented object-oriented databases, application servers, and enterprise application development methods.

Dale Green is a staff writer with Sun Microsystems, where he documents the J2EE platform. In previous positions he programmed business applications, designed databases, taught technical classes, and documented RDBMS products. In his current position he writes about Enterprise JavaBeans technology and the J2EE SDK.

Kim Haase is a staff writer with Sun Microsystems, where she documents the J2EE platform. In previous positions she has documented compilers, debuggers, and floating-point programming. She currently writes about the Java Message Service and J2EE SDK tools.

Eric Jendrock is a staff writer with Sun Microsystems, where he documents the J2EE platform. Previously, he documented middleware products and standards. Currently, he writes about the J2EE Compatibility Test Suite and J2EE security.



Excerpt. Reprinted by permission. All rights reserved.:

About This Tutorial

The J2EE™ Tutorial, Second Edition is a guide to developing enterprise applications for the Java 2 Platform, Enterprise Edition (J2EE) version 1.4. Here we cover all the things you need to know to make the best use of this tutorial.

Who Should Use This Tutorial

This tutorial is intended for programmers who are interested in developing and deploying J2EE 1.4 applications on the Sun Java System Application Server Platform Edition 8.

Prerequisites

Before proceeding with this tutorial you should have a good knowledge of the Java programming language. A good way to get to that point is to work through all the basic and some of the specialized trails in The Java™ Tutorial, Mary Campione et al. (Addison-Wesley, 2000). In particular, you should be familiar with relational database and security features.

How to Read This Tutorial

The J2EE 1.4 platform is quite large, and this tutorial reflects this. However, you don't have to digest everything in it at once.

This tutorial opens with three introductory chapters, which you should read before proceeding to any specific technology area. Chapter 1 covers the J2EE 1.4 platform architecture and APIs along with the Sun Java System Application Server Platform Edition 8. Chapters 2 and 3 cover XML basics and getting started with Web applications.

When you have digested the basics, you can delve into one or more of the four main technology areas listed next.

  • The Java XML chapters cover the technologies for developing applications that process XML documents and implement Web services components:
    • The Java API for XML Processing (JAXP)
    • The Java API for XML-based RPC (JAX-RPC)
    • SOAP with Attachments API for Java (SAAJ)
    • The Java API for XML Registries (JAXR)
  • The Web-tier technology chapters cover the components used in developing the presentation layer of a J2EE or stand-alone Web application:
    • Java Servlet
    • JavaServer Pages (JSP)
    • JavaServer Pages Standard Tag Library (JSTL)
    • JavaServer Faces
    • Web application internationalization and localization
  • The Enterprise JavaBeans (EJB) technology chapters cover the components used in developing the business logic of a J2EE application:
    • Session beans
    • Entity beans
    • Message-driven beans
    • Enterprise JavaBeans Query Language
  • The platform services chapters cover the system services used by all the J2EE component technologies:
    • Transactions
    • Resource connections
    • Security
    • Java Message Service

After you have become familiar with some of the technology areas, you are ready to tackle the case studies, which tie together several of the technologies discussed in the tutorial. The Coffee Break Application (Chapter 35) describes an application that uses the Web application and Web services APIs. The Duke's Bank Application (Chapter 36) describes an application that employs Web application technologies and enterprise beans.

Finally, the appendixes contain auxiliary information helpful to the J2EE application developer along with a brief summary of the J2EE Connector architecture:

  • Java Encoding Schemes (Appendix A)
  • XML standards (Appendix B)
  • HTTP Overview (Appendix C)
  • J2EE Connector Architecture (Appendix D)

About the Examples

This section tells you everything you need to know to install, build, and run the examples.

Required Software

Tutorial Bundle

The tutorial example source is contained in the tutorial bundle, which is distributed on the accompanying CD-ROM.

After you have installed the tutorial bundle, the example source code is in the /j2eetutorial14/examples/ directory, with subdirectories for each of the technologies discussed in the tutorial.

Application Server

The Sun Java System Application Server Platform Edition 8 is targeted as the build and runtime environment for the tutorial examples. To build, deploy, and run the examples, you need a copy of the Application Server and the Java 2 -Software Development Kit, Standard Edition (J2SE SDK) 1.4.2_04 or higher. The Application Server and J2SE SDK are contained in the J2EE 1.4 SDK, which is distributed on the CD-ROM accompanying the tutorial.

Application Server Installation Tips

In the Admin configuration pane of the Application Server installer,

  • Select the Don't Prompt for Admin User Name radio button. This will save the user name and password so that you won't need to provide them when performing administrative operations with asadmin and deploytool. You will still have to provide the user name and password to log in to the Admin Console.
  • Note the HTTP port at which the server is installed. This tutorial assumes that you are accepting the default port of 8080. If 8080 is in use during installation and the installer chooses another port, or if you decide to change it yourself, you will need to update the common build properties file (described in the next section) and the configuration files for some of the tutorial examples to reflect the correct port.

In the Installation Options pane, check the Add Bin Directory to PATH checkbox so that Application Server scripts (asadmin, asant, deploytool, and wscompile) override other installations.

Registry Server

You need a registry server to run the examples discussed in Chapters 10 and 35. Directions for obtaining and setting up a registry server are provided in those chapters.

Building the Examples

Most of the tutorial examples are distributed with a configuration file for asant, a portable build tool contained in the Application Server. This tool is an extension of the Ant tool developed by the Apache Software Foundation (http://ant.apache.org). The asant utility contains additional tasks that invoke the Application Server administration utility asadmin. Directions for building the examples are provided in each chapter.

Build properties and targets common to all the examples are specified in the files /j2eetutorial14/examples/common/build.properties and /j2eetutorial14/examples/common/targets.xml. Build properties and targets common to a particular technology are specified in the files /j2eetutorial14/examples/tech/common/build.properties and /j2eetutorial14/examples/tech/common/targets.xml.

To run the asant scripts, you must set two common build properties as follows:

  • Set the j2ee.home property in the file /j2eetutorial14/examples/common/build.properties to the location of your Application Server installation. The build process uses the j2ee.home property to include the libraries in /lib/ in the classpath. All examples that run on the Application Server include the J2EE library archive-- /lib/j2ee.jar--in the build classpath. Some examples use additional libraries in /lib/ and /lib/endorsed/; the required libraries are enumerated in the individual technology chapters.
    refers to the directory where you have installed the Application Server or the J2EE 1.4 SDK.
  • If you did not use port 8080 when you installed the Application Server, set the value of the domain.resources.port property in /j2eetutorial14/examples/common/build.properties to the correct port.

Tutorial Example Directory Structure

To facilitate iterative development and keep application source separate from compiled files, the source code for the tutorial examples is stored in the following structure under each application directory:

  • build.xml: asant build file
  • src: Java source of servlets and JavaBeans components; tag libraries
  • web: JSP pages and HTML pages, tag files, and images

The asant build files (build.xml) distributed with the examples contain targets to create a build subdirectory and to copy and compile files into that directory.

Further Information

This tutorial includes the basic information that you need to deploy applications on and administer the Application Server.

For reference information on the tools distributed with the Application Server, see the man pages at http://docs.sun.com/db/doc/817-6092.

See the Sun Java™ System Application Server Platform Edition 8 Developer's Guide at http://docs.sun.com/db/doc/817-6087 for information about developer features of the Application Server.

See the Sun Java™ System Application Server Platform Edition 8 Administration Guide at
http://docs.sun.com/db/doc/817-6088 for information about administering the Application Server.

"About this title" may belong to another edition of this title.

Top Search Results from the AbeBooks Marketplace

1.

Bodoff, Stephanie; Armstrong, Eric; Ball, Jennifer; Carson, Debbie; Evans, Ian; Green, Dale; Haase, Kim; Jendrock, Eric
Published by Prentice Hall PTR (2004)
ISBN 10: 032124575X ISBN 13: 9780321245755
New Paperback Quantity Available: 1
Seller
Irish Booksellers
(Rumford, ME, U.S.A.)
Rating
[?]

Book Description Prentice Hall PTR, 2004. Paperback. Book Condition: New. book. Bookseller Inventory # 032124575X

More Information About This Seller | Ask Bookseller a Question

Buy New
US$ 36.25
Convert Currency

Add to Basket

Shipping: FREE
Within U.S.A.
Destination, Rates & Speeds

2.

Stephanie Bodoff, Eric Armstrong, Jennifer Ball, Debbie Carson, Ian Evans, Dale Green, Kim Haase, Eric Jendrock
Published by Prentice Hall PTR (2004)
ISBN 10: 032124575X ISBN 13: 9780321245755
New Paperback Quantity Available: 1
Seller
Ergodebooks
(RICHMOND, TX, U.S.A.)
Rating
[?]

Book Description Prentice Hall PTR, 2004. Paperback. Book Condition: New. 2. Bookseller Inventory # DADAX032124575X

More Information About This Seller | Ask Bookseller a Question

Buy New
US$ 40.25
Convert Currency

Add to Basket

Shipping: US$ 3.99
Within U.S.A.
Destination, Rates & Speeds