Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword
Like this
9Activity
0 of .
Results for:
No results containing your search query
P. 1
Java Beans

Java Beans

Ratings: (0)|Views: 72|Likes:
Published by api-19624835

More info:

Published by: api-19624835 on Nov 25, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

03/18/2014

pdf

text

original

Enterprise JavaBeans
Developer\u2019s Guide
VERSION 5
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. The furnishing of this document does not give you any license to these patents.

COPYRIGHT \u00a9 1997, 2001 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. Other product names are trademarks or registered trademarks of their respective holders.

For third-party conditions and disclaimers, see the Release Notes on your JBuilder product CD.
Printed in the U.S.A.
JBE0050WW21002entjb 2E1R0401
0102030405-9 8 7 6 5 4 3 2 1
PDF
i
Chapter 1
An introduction to EJB development 1-1
Why we need Enterprise JavaBeans. . . . . . . 1-1
Roles in the development of an EJB

application. . . . . . . . . . . . . . . . . . . . 1-2
Application roles. . . . . . . . . . . . . . . . 1-3
Infrastructure roles. . . . . . . . . . . . . . . 1-3
Deployment and operation roles. . . . . . . 1-4
EJB architecture. . . . . . . . . . . . . . . . . . 1-4
The EJB server. . . . . . . . . . . . . . . . . 1-5
The EJB container. . . . . . . . . . . . . . . . 1-5
How an enterprise bean works. . . . . . . . 1-6
Types of enterprise beans. . . . . . . . . . . . . 1-7
Session beans. . . . . . . . . . . . . . . . . . 1-7
Entity beans. . . . . . . . . . . . . . . . . . . 1-7
Developing enterprise beans. . . . . . . . . . . 1-7
Contacting Borland developer support. . . . . 1-8
Online resources. . . . . . . . . . . . . . . . 1-9

World Wide Web. . . . . . . . . . . . . . 1-9 Borland newsgroups. . . . . . . . . . . . 1-9 Usenet newsgroups. . . . . . . . . . . . . 1-9 Reporting bugs. . . . . . . . . . . . . . . 1-10

Documentation conventions. . . . . . . . . . . 1-10
Chapter 2
Setting up the target application
server
2-1
Adding application server files to

your project. . . . . . . . . . . . . . . . . . . . 2-3 Making the ORB available to JBuilder. . . . . . 2-3 Selecting an application server. . . . . . . . . . 2-4

Chapter 3
Creating enterprise beans
with JBuilder
3-1

Creating an EJB group. . . . . . . . . . . . . . . 3-2 Creating an empty EJB group. . . . . . . . . 3-2 Creating an EJB group from existing

enterprise beans. . . . . . . . . . . . . . . . 3-3
Creating an enterprise bean. . . . . . . . . . . . 3-4
Creating a session bean. . . . . . . . . . . . 3-6
Creating an entity bean. . . . . . . . . . . . 3-6
Adding the business logic to your bean . . . 3-8

Exposing business methods through
the remote interface. . . . . . . . . . . . . 3-10
Generating the bean class from a
remote interface. . . . . . . . . . . . . . . . . 3-11
Creating the home and remote interfaces

for an existing bean. . . . . . . . . . . . . . . 3-13 Compiling the bean. . . . . . . . . . . . . . . . 3-16 Editing deployment descriptors. . . . . . . . . 3-18

Chapter 4
Creating entity beans from an
existing database table
4-1
Creating entity beans with the EJB
Entity Bean Modeler. . . . . . . . . . . . . . . 4-1
Chapter 5
Testing an enterprise bean
5-1

Creating a test client. . . . . . . . . . . . . . . . 5-1 Using the test client application. . . . . . . . . . 5-3 Testing your enterprise bean. . . . . . . . . . . . 5-5

Chapter 6
Deploying enterprise beans
6-1
Creating a deployment descriptor file. . . . . . 6-2
The role of the deployment descriptor. . . . . . 6-2
The types of information in the

deployment descriptor. . . . . . . . . . . . 6-3
Structural information. . . . . . . . . . . . 6-3
Application assembly information. . . . . 6-4
Security. . . . . . . . . . . . . . . . . . . . 6-4
Security roles. . . . . . . . . . . . . . . . . 6-4
Method permissions. . . . . . . . . . . . . 6-5
Linking of security role references. . . . . 6-5
Deploying to an application server. . . . . . . . 6-5
Deploying one or more JAR files. . . . . . . 6-5

Deploying to WebLogic or WebSphere
servers. . . . . . . . . . . . . . . . . . . . . 6-8
Setting deployment options with
the Properties dialog box. . . . . . . . . . . 6-9
Hot deploying to an application server. . . . 6-9
Chapter 7
Using the Deployment
Descriptor editor
7-1
Displaying the Deployment Descriptor
editor. . . . . . . . . . . . . . . . . . . . . . . . 7-2
Viewing the deployment descriptor of
an enterprise bean. . . . . . . . . . . . . . . . . 7-2
Contents

Activity (9)

You've already reviewed this. Edit your review.
1 hundred reads
didu liked this
1987111sree liked this
wepsm liked this
jljerin liked this
hitesh99raj liked this
natureofgnk liked this
cr@zyyyyy liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->