Before You Begin |
The Java Community Process, supported by Sun Microsystems, Inc., has evolved standards for designing distributed, enterprise applications with the Java 2 Platform, Enterprise Edition (J2EE
platform). The J2EE platform documentation listed in Before You Read This Book covers these standards for application design and architecture.
This book is about how you implement these architectures with the Sun ONE Studio 5, Standard Edition developer tools. It is about using the IDE to combine components and create J2EE modules, making sure that all of the components interact in the way that the application design specifies. It is also about combining J2EE modules to create J2EE applications, making sure that the distributed interactions between the modules function in the way that the application design calls for.
Screen shots vary slightly from one platform to another. Although almost all procedures use the interface of the Sun ONE Studio 5 software, occasionally you might be instructed to enter a command at the command line. Here too, there are slight differences from one platform to another. For example, a Microsoft Windows command might look like this:
c:>cd MyWorkDir\MyPackage |
A UNIX command might look like this:
% cd MyWorkDir/MyPackage |
This book is intended for anyone who uses the Sun ONE Studio 5 IDE to assemble, deploy, or execute J2EE applications. The first chapter summarizes the J2EE platform concepts of assembly and deployment, and it should benefit anyone seeking a general understanding of assembly and deployment.
This book assumes a familiarity with the following subjects:
This book requires a knowledge of J2EE concepts, as described in the following resources:
Familiarity with the Java API for XML-Based RPC (JAX-RPC) is helpful. For more information, see this web page:
http://java.sun.com/xml/jaxrpc
The J2EE platform makes possible a component-oriented approach to developing enterprise applications. Application developer encapsulate business logic in Enterprise JavaBeans (EJB
) components and web components. After creating components, developers assemble their components into modules, which are units of logic that perform recognizable business tasks. After assembling modules, developers assemble their modules into J2EE applications. J2EE applications perform entire business processes.
This book is about using the Sun ONE Studio 5 development environment to assemble components into modules and modules into applications. The book presents this information in a series of "scenarios."
Chapter 1 summarizes the J2EE concepts of assembly and deployment. It defines the J2EE units of modules and applications and examines module and application deployment descriptors. This chapter also explains how to assemble modules and applications in the IDE. In particular, this chapter explains how to use module and application property sheets to set up module and application deployment descriptors.
Chapter 2 is a scenario that shows how to assemble a web module. This chapter includes a short description of a web module that is used as the front end of a J2EE application. This chapter then shows how to program the web module.
Chapter 3 is a scenario that shows how to assemble an EJB module. This chapter includes a short description of an EJB module that is used in a J2EE application. This chapter then shows how to program the EJB module.
Chapter 4 is a scenario that shows how to assemble a J2EE application by combining a web module and an EJB module. This chapter includes a short description of a J2EE application that combines a web module and an EJB module. This chapter then shows how to assemble the application. This scenario features synchronous interaction between the two modules, using Java RMI.
Chapter 5 is a scenario that shows how to set up asynchronous communications between modules using a message-driven enterprise bean, or MDB. This chapter includes a short description of asynchronous communication used in a business application. This chapter then shows how to program both the sending and receiving sides of the application. The scenario in this chapter features a web module communicating with an EJB module, but the example can be applied to other combinations of modules.
Chapter 6 explains how to program container-managed transactions with the IDE.
Chapter 7 explains how to secure the resources in a J2EE application using the IDE. This chapter shows how to set up security roles at the module level and how to use the security roles to restrict access to web module resources and enterprise bean methods. This chapter also shows how to map security roles when modules are assembled into an application.
Chapter 8 explains how to deploy and execute assembled applications. In particular, it explains how to tailor an application for a specific server product before deployment.
Appendix A looks at the mechanism the IDE uses to interact with web and application servers. It includes a detailed account of the deployment process.
The names of commands, files, and directories; on-screen computer output |
||
What you type, when contrasted with on-screen computer output |
||
Read Chapter 6 in the User's Guide. |
||
Sun ONE Studio 5 documentation includes books delivered in Acrobat Reader (PDF) format, release notes, online help, readme files for example applications, and Javadoc documentation.
The documents described in this section are available from the docs.sun.comSM web site and from the documentation page of the Sun ONE Studio Developer Resources portal at http://forte.sun.com/ffj/documentation.
The docs.sun.com web site (http://docs.sun.com) enables you to read, print, and buy Sun Microsystems manuals through the Internet. If you cannot find a manual, see the documentation index that is installed with the product on your local system or network.
You can also find the completed tutorial applications at: http://forte.sun.com/ffj/documentation/tutorialsandexamples.html
Online help is available in the Sun ONE Studio 5 IDE. You can open help by pressing the help key (F1 in Microsoft Windows and Linux environments, Help key in the Solaris environment), or by choosing Help Contents. Either action displays a list of help topics and a search facility.
You can download examples that illustrate a particular Sun ONE Studio 5 feature, as well as completed tutorial applications, from the Sun ONE Studio Developer Resources portal at:
http://forte.sun.com/ffj/documentation/tutorialsandexamples.html
The site includes the applications that are used in this document.
Javadoc documentation is available within the IDE for many Sun ONE Studio 5 modules. Refer to the release notes for instructions on installing this documentation.
The documentation is provided in accessible formats that are readable by assistive technologies for users with disabilities. You can find accessible versions of documentation as described in the following table.
HTML at http://docs.sun.com |
|
HTML in the example subdirectories of s1studio-install-directory/examples |
|
HTML at http://docs.sun.com |
If you have technical questions about this product that are not answered in this document, go to:
http://www.sun.com/service/contacting
Sun is interested in improving its documentation and welcomes your comments and suggestions. Email your comments to Sun at this address:
Please include the part number (817-2327-10) of your document in the subject line of your email.
Copyright © 2003, Sun Microsystems, Inc. All rights reserved.