Read without ads and support Scribd by becoming a Scribd Premium Reader.
\u2122
Enterprise JavaBeans
Developer\u2019s Guide
VERSION 6
Borland Software Corporation
100 Enterprise Way, Scotts Valley, CA 95066-3249
www.borland.com
Borland\u00ae
JBuilder\u2122
Refer to the file DEPLOY.TXT located in theredist directory of your JBuilder product for a complete list of files that
you can distribute in accordance with the JBuilder License Statement and Limited Warranty.

Borland Software Corporation may have patents and/or pending patent applications covering subject matter in this document. Please refer to the product CD or the About dialog box for the list of applicable patents. The furnishing of this document does not give you any license to these patents.

COPYRIGHT \u00a9 1997\u20132001 Borland Software Corporation. All rights reserved. All Borland brand and product names are trademarks or registered trademarks of Borland Software Corporation in the United States and other countries. All other marks are the property of their respective owners.

For third-party conditions and disclaimers, see the Release Notes on your JBuilder product CD.
Printed in the U.S.A.
JBE0060WW21004entjb 3E3R1001
0102030405-9 8 7 6 5 4 3 2 1
PDF
i
Chapter 1
Introduction
1-1
Documentation conventions. . . . . . . . . . . 1-1
Note to Macintosh users. . . . . . . . . . . . 1-3

Contacting Borland developer support. . . . . 1-4 Online resources. . . . . . . . . . . . . . . . 1-4 World Wide Web. . . . . . . . . . . . . . . . 1-4 Borland newsgroups. . . . . . . . . . . . . . 1-5 Usenet newsgroups. . . . . . . . . . . . . . 1-5 Reporting bugs. . . . . . . . . . . . . . . . . 1-5

Chapter 2
Programming for the Java\u2122 2
Platform, Enterprise Edition
2-1

Why are J2EE applications desirable?. . . . . . 2-1
Benefits of the multi-tier model. . . . . . . . 2-3
How JBuilder can help. . . . . . . . . . . . . . 2-5
Client tier technologies. . . . . . . . . . . . 2-5
Middle-tier technologies. . . . . . . . . . . . 2-6
Other J2EE technologies. . . . . . . . . . . . 2-7
Preparing to deploy J2EE applications. . . . 2-8
Learning about J2EE. . . . . . . . . . . . . . . . 2-8

Chapter 3
An introduction to EJB development 3-1
Why we need Enterprise JavaBeans. . . . . . . 3-1
Roles in the development of an EJB

application. . . . . . . . . . . . . . . . . . . . 3-2
Application roles. . . . . . . . . . . . . . . . 3-2
Infrastructure roles. . . . . . . . . . . . . . . 3-3
Deployment and operation roles. . . . . . . 3-4
EJB architecture. . . . . . . . . . . . . . . . . . 3-4
The EJB server. . . . . . . . . . . . . . . . . 3-5
The EJB container. . . . . . . . . . . . . . . . 3-5
How an enterprise bean works. . . . . . . . 3-6
Types of enterprise beans. . . . . . . . . . . . . 3-7
Session beans. . . . . . . . . . . . . . . . . . 3-7
Entity beans. . . . . . . . . . . . . . . . . . . 3-7
Message-driven beans. . . . . . . . . . . . . 3-7
Remote and local access. . . . . . . . . . . . . . 3-8
Developing enterprise beans. . . . . . . . . . . 3-8

Chapter 4
Setting up the target application
server
4-1
The created libraries. . . . . . . . . . . . . . . . 4-3
Adding application server files to your

project. . . . . . . . . . . . . . . . . . . . . . . 4-4
Making the ORB available to JBuilder. . . . . . 4-4
Selecting an application server. . . . . . . . . . 4-4
Setting up JDBC drivers. . . . . . . . . . . . . . 4-5
Creating the .library and .config files. . . . . 4-6
Adding the JDBC driver to projects. . . . . . 4-7

Chapter 5
Creating EJB 2.0 components with
JBuilder
5-1
Introducing EJB modules. . . . . . . . . . . . . 5-1
Creating an EJB 2.0 module. . . . . . . . . . 5-2
Creating a module with the EJB
Module wizard. . . . . . . . . . . . . . . 5-2
Creating an EJB module from

existing deployment descriptors. . . . . 5-4
Displaying the EJB Designer. . . . . . . . . . . . 5-5
Creating session beans. . . . . . . . . . . . . . . 5-7
Viewing a bean\u2019s source code. . . . . . . . . . . 5-8
Modifying the bean. . . . . . . . . . . . . . . . . 5-9
Editing bean attributes. . . . . . . . . . . . . 5-9
Adding a new field. . . . . . . . . . . . . . . 5-9
Removing a field. . . . . . . . . . . . . . 5-10
Adding a new method. . . . . . . . . . . . 5-10
Removing a method. . . . . . . . . . . . 5-11
Creating message-driven beans. . . . . . . . . 5-12
Creating entity beans. . . . . . . . . . . . . . . 5-13

Creating entity beans from an

imported data source. . . . . . . . . . . . 5-13 Importing a data source. . . . . . . . . . 5-13 Modifying the imported data

source schema. . . . . . . . . . . . . . 5-15
Generating the entity bean classes
and interfaces. . . . . . . . . . . . . . . 5-17
Editing entity bean properties. . . . . . 5-17
Contents
Search History:
Searching...
Result 00 of 00
00 results for result for
  • p.
  • Notes
    Load more