Sie sind auf Seite 1von 472

Front cover

Front cover VisualAge Pacbase for e-business Applications Richard Brijde Randall Holleger David Quantin An overview of

VisualAge Pacbase

for e-business Applications

Richard Brijde Randall Holleger David Quantin
Richard Brijde
Randall Holleger
David Quantin
Applications Richard Brijde Randall Holleger David Quantin An overview of VisualAge Pacbase V3 Step-by-by guide to

An overview of VisualAge Pacbase V3

Holleger David Quantin An overview of VisualAge Pacbase V3 Step-by-by guide to develop an e-business application

Step-by-by guide to develop an e-business application

of VisualAge Pacbase V3 Step-by-by guide to develop an e-business application Develop JSPs and EJBs ibm.com

Develop JSPs and EJBs

ibm.com/redbooks

of VisualAge Pacbase V3 Step-by-by guide to develop an e-business application Develop JSPs and EJBs ibm.com
of VisualAge Pacbase V3 Step-by-by guide to develop an e-business application Develop JSPs and EJBs ibm.com
International Technical Support Organization VisualAge Pacbase for e-business Applications December 2002 SG24-6201-00

International Technical Support Organization

VisualAge Pacbase for e-business Applications

December 2002

SG24-6201-00

Note: Before using this information and the product it supports, read the information in “Notices” on page xiii.

First Edition (December 2002)

This edition applies to VisualAge Pacbase Version 3 for use with the Microsoft NT 4.0 SP 5 operating system, VisualAge for Java 3.02, WebSphere Studio 3.0, and WebSphere Application Server 3.02 Enterprise Edition.

© Copyright International Business Machines Corporation 2002. All rights reserved. Note to U.S. Government Users Restricted Rights -- Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.

Contents

 

Notices

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

xiii

Trademarks

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

xiv

Preface

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

xv

The team that wrote this

 

.

.

xv

Become a published author

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

xvi

Comments

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

xvii

Part 1.

e-business application development

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

1

 

Chapter 1.

VisualAge Pacbase

 

3

1.1 Definitions and terminology

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

4

1.2 Methodology support.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 5

1.3 Components

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

5

1.4 Support for e-business

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

6

Chapter 2. VisualAge Pacbase targeted application architecture

 

7

2.1 About Web

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

8

2.2 Main architectures

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

8

2.3 Commonly encountered problems

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

13

2.4 JSPs/servlet architecture main components

 

14

2.4.1 HTML pages

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

15

2.4.2 Servlets

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

15

2.4.3 JavaBeans

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

15

2.4.4 JSPs

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

16

2.5 VisualAge Pacbase proxy

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

16

2.6 Application architecture overview

 

17

2.6.1 Introduction to patterns

 

.

.

.

.

.

.

.

.

.

.

.

.

.

18

2.6.2 Choosing the business pattern

 

18

2.6.3 Choosing the application topology

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

19

2.6.4 Choosing a runtime topology

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

19

2.6.5 Product

mapping

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

20

2.7 Defining the application architecture

 

20

2.7.1 Design techniques used

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

20

2.7.2 Development approach .

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

22

2.7.3 Development standards

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

24

2.8 Basic VisualAge Pacbase architecture

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

27

Middleware

2.8.1 .

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

27

2.8.2 Listener

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

27

2.8.3

Communications monitor

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

27

Chapter 3.

VisualAge Pacbase products: overview

 

29

3.1 VisualAge Pacbase 3.0

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

30

3.1.1 The

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

30

3.1.2 The repository

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

31

3.2 Other

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

32

3.2.1 About Rational Rose

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

32

3.2.2 About VisualAge for Java

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

33

3.2.3 About WebSphere Studio

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

33

3.2.4 About WebSphere Application

 

34

3.2.5 About DB2 Universal Database

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

34

3.2.6 About MQSeries

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

34

3.3 Tools integration

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

35

3.3.1 Integration of Rational Rose with VisualAge Pacbase

 

35

3.3.2 Integration of Rational Rose with VisualAge for Java

35

3.3.3 Integration of VisualAge for Java with WebSphere Studio

 

35

3.3.4 Integration of VisualAge for Java with WAS

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

36

3.3.5 Integration of WebSphere Studio with WAS

 

36

3.3.6 Integration of WebSphere Application Server with DB2

 

36

3.3.7 Complete product environment

 

37

Chapter 4. Environment setup, installation, and administration

 

39

4.1 Installation/setup: VisualAge Pacbase 3.0 repository

 

40

4.1.1 Special considerations

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

40

4.1.2 Running the

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

40

4.2 Installing the VisualAge Pacbase

 

69

4.2.1

Installation

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

69

4.3 Impacts on other tools

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

92

4.3.1 Installing the WebSphere test environment feature

.

.

.

.

.

.

.

.

.

.

.

92

4.3.2 Installing the VisualAge Pacbase Java environment

.

.

.

.

.

.

.

.

.

.

93

4.4 VisualAge Pacbase 3.0: Site administration

 

100

4.4.1 Starting the administrator

 

101

4.4.2 Menu bar

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

104

4.4.3 Using the administrator Workbench

 

113

4.4.4 Command lines

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 115

4.4.5 Profiles

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

116

4.4.6 Pac/Transfer

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

120

4.4.7 .

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

128

4.4.8 Tool bar

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

129

4.5 External controls

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 130

4.5.1 Validity controls .

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 131

4.5.2 Initialization controls

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

131

4.6

VisualAge Pacbase 3.0: Base administration

131

 

4.6.1 Menu bar

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.