Siêu thị PDFTải ngay đi em, trời tối mất

Thư viện tri thức trực tuyến

Kho tài liệu với 50,000+ tài liệu học thuật

© 2023 Siêu thị PDF - Kho tài liệu học thuật hàng đầu Việt Nam

EJB 2.0 development with WebSphere studio application developer
PREMIUM
Số trang
847
Kích thước
14.5 MB
Định dạng
PDF
Lượt xem
1902

EJB 2.0 development with WebSphere studio application developer

Nội dung xem thử

Mô tả chi tiết

• Table of Contents

• Index

EJB 2.0 Development with WebSphere Studio Application Developer

By Ueli Wahli, Wouter Denayer, Lars Schunk, Deborah Shaddon, Martin Weiss

Publisher: IBM

Pub Date: April 11, 2003

ISBN: 0-7384-2609-1

Pages: 750

Learn about the EJB 2.0 specification

Develop EJBs with Studio Application Developer

Deploy EJBs to WebSphere Application Server

This IBM Redbook provides detailed information on how to effectively use WebSphere Studio

Application Developer for the development of applications based on the Enterprise JavaBeans

(EJB) architecture, and deployment of such applications to a WebSphere Application Server.

Throughout the book, we provide examples based on a simple banking application with an

underlying relational database.

In Part 1, we introduce EJBs as a part of Java 2 Enterprise Edition (J2EE) and cover the basic

concepts and the architecture. In particular we point out the new functions introduced with the

EJB 2.0 specification that provide, for example, enhanced functionality for container-managed

persistence entity beans and message-driven beans. We also provide best practice guidelines for

successful implementations of EJBs.

In Part 2, we introduce the sample banking application and then implement entity beans, session

beans, and message-driven beans using WebSphere Studio Application Developer. We also

implement finder methods, different mapping strategies, and simple clients that use the EJBs. At

the end, we describe how to deploy EJB applications to a WebSphere Application Server.

• Table of Contents

• Index

EJB 2.0 Development with WebSphere Studio Application Developer

By Ueli Wahli, Wouter Denayer, Lars Schunk, Deborah Shaddon, Martin Weiss

Publisher: IBM

Pub Date: April 11, 2003

ISBN: 0-7384-2609-1

Pages: 750

Learn about the EJB 2.0 specification

Develop EJBs with Studio Application Developer

Deploy EJBs to WebSphere Application Server

This IBM Redbook provides detailed information on how to effectively use WebSphere Studio

Application Developer for the development of applications based on the Enterprise JavaBeans

(EJB) architecture, and deployment of such applications to a WebSphere Application Server.

Throughout the book, we provide examples based on a simple banking application with an

underlying relational database.

In Part 1, we introduce EJBs as a part of Java 2 Enterprise Edition (J2EE) and cover the basic

concepts and the architecture. In particular we point out the new functions introduced with the

EJB 2.0 specification that provide, for example, enhanced functionality for container-managed

persistence entity beans and message-driven beans. We also provide best practice guidelines for

successful implementations of EJBs.

In Part 2, we introduce the sample banking application and then implement entity beans, session

beans, and message-driven beans using WebSphere Studio Application Developer. We also

implement finder methods, different mapping strategies, and simple clients that use the EJBs. At

the end, we describe how to deploy EJB applications to a WebSphere Application Server.

• Table of Contents

• Index

EJB 2.0 Development with WebSphere Studio Application Developer

By Ueli Wahli, Wouter Denayer, Lars Schunk, Deborah Shaddon, Martin Weiss

Publisher: IBM

Pub Date: April 11, 2003

ISBN: 0-7384-2609-1

Pages: 750

Copyright

Preface

The team that wrote this redbook

Become a published author

Comments welcome

Part 1: EJB architecture and concepts

Chapter 1. Introduction to Enterprise JavaBeans

Server-side component architecture

Why EJBs?

Java 2 Platform, Enterprise Edition (J2EE)

EJB specifications

EJB 2.0 overview

A brief look at history

Adopting EJB technology

End-to-end enterprise application development

Summary

Chapter 2. EJB architecture and concepts

Introduction

EJB roles

Main EJB framework components

Remote and local interfaces: comparison

Bean-container contract revisited

EJB framework summary

Enterprise bean types: revisited

EJB development and deployment process

Developing an EJB: an example application

Summary

Chapter 3. Entity beans

Introduction

Entity bean concepts

Bean-container contract

• Table of Contents

• Index

EJB 2.0 Development with WebSphere Studio Application Developer

By Ueli Wahli, Wouter Denayer, Lars Schunk, Deborah Shaddon, Martin Weiss

Publisher: IBM

Pub Date: April 11, 2003

ISBN: 0-7384-2609-1

Pages: 750

Learn about the EJB 2.0 specification

Develop EJBs with Studio Application Developer

Deploy EJBs to WebSphere Application Server

This IBM Redbook provides detailed information on how to effectively use WebSphere Studio

Application Developer for the development of applications based on the Enterprise JavaBeans

(EJB) architecture, and deployment of such applications to a WebSphere Application Server.

Throughout the book, we provide examples based on a simple banking application with an

underlying relational database.

In Part 1, we introduce EJBs as a part of Java 2 Enterprise Edition (J2EE) and cover the basic

concepts and the architecture. In particular we point out the new functions introduced with the

EJB 2.0 specification that provide, for example, enhanced functionality for container-managed

persistence entity beans and message-driven beans. We also provide best practice guidelines for

successful implementations of EJBs.

In Part 2, we introduce the sample banking application and then implement entity beans, session

beans, and message-driven beans using WebSphere Studio Application Developer. We also

implement finder methods, different mapping strategies, and simple clients that use the EJBs. At

the end, we describe how to deploy EJB applications to a WebSphere Application Server.

Life cycle of an entity bean

Abstract persistence schema mappings

Developing an entity bean: Customer

Entity bean design and construction best practices

Client view of an entity bean

Summary

Chapter 4. Entity beans advanced: relationships, inheritance, custom queries

Introduction

EJB container-managed relationships (CMR)

EJB inheritance

EJB custom query methods

EJB query language (EJB QL)

Developing entity beans with advanced concepts

Entity bean design and construction best practices

Client view of advanced entity bean concepts

Summary

Chapter 5. Session beans

Introduction

Session bean concepts

Bean-container contract

Life-cycle sequence of session beans

Developing a session bean

Session bean design and construction best practices

Client view of a session bean

Summary

Chapter 6. Message-driven beans

Introduction

Java messaging service concepts

Message-driven bean concepts

Developing a message-driven bean

MDB client programming

Message-driven bean interaction patterns

Message-driven bean best practices

Summary

Chapter 7. EJB clients

Client types

How to access EJBs

Using access beans

Using a session facade to entity beans

Client comparison

Home factory pattern

Summary

Chapter 8. Additional concepts: transactions, exceptions, security

Introduction

Transactions

EJB exception handling

Security

Summary

Part 2: Developing and testing EJBs with Application Developer

Chapter 9. WebSphere Studio Application Developer

• Table of Contents

• Index

EJB 2.0 Development with WebSphere Studio Application Developer

By Ueli Wahli, Wouter Denayer, Lars Schunk, Deborah Shaddon, Martin Weiss

Publisher: IBM

Pub Date: April 11, 2003

ISBN: 0-7384-2609-1

Pages: 750

Learn about the EJB 2.0 specification

Develop EJBs with Studio Application Developer

Deploy EJBs to WebSphere Application Server

This IBM Redbook provides detailed information on how to effectively use WebSphere Studio

Application Developer for the development of applications based on the Enterprise JavaBeans

(EJB) architecture, and deployment of such applications to a WebSphere Application Server.

Throughout the book, we provide examples based on a simple banking application with an

underlying relational database.

In Part 1, we introduce EJBs as a part of Java 2 Enterprise Edition (J2EE) and cover the basic

concepts and the architecture. In particular we point out the new functions introduced with the

EJB 2.0 specification that provide, for example, enhanced functionality for container-managed

persistence entity beans and message-driven beans. We also provide best practice guidelines for

successful implementations of EJBs.

In Part 2, we introduce the sample banking application and then implement entity beans, session

beans, and message-driven beans using WebSphere Studio Application Developer. We also

implement finder methods, different mapping strategies, and simple clients that use the EJBs. At

the end, we describe how to deploy EJB applications to a WebSphere Application Server.

WebSphere Studio Application Developer

WebSphere Studio Workbench

Workbench window

Perspectives and views

Projects

Servers

EJB development environment

Chapter 10. Introducing and preparing for the sample application

Bank model

Bank database

Preparing Application Developer

Summary

Chapter 11. Container-managed entity bean development

Developing the account CMP entity bean

Testing the enterprise bean

Developing the customer and transaction record EJBs

Developing relationships

Developing inheritance structures

Cleaning the model

Developing custom finders

Developing a home method

Code generation for finder and select methods

Chapter 12. Mapping strategies for CMPs

Mapping strategies

Mapping examples

Converters and composers

Chapter 13. Bean-managed entity bean development

Bean-managed persistence (BMP)

Why BMP?

Recommendations

Developing a BMP entity bean

Generating the deployed code

Creating the database table

Testing the BMP entity bean

Read-only methods

Summary

Chapter 14. Session bean development

Design

Developing a stateless session bean

Developing a stateful session bean

Creating a Web Service from a session bean

Summary

Chapter 15. EJB access beans

What are access beans?

Developing access beans

Summary

Chapter 16. Message-driven bean development

Design

Developing a message-driven bean

Setting up the server

• Table of Contents

• Index

EJB 2.0 Development with WebSphere Studio Application Developer

By Ueli Wahli, Wouter Denayer, Lars Schunk, Deborah Shaddon, Martin Weiss

Publisher: IBM

Pub Date: April 11, 2003

ISBN: 0-7384-2609-1

Pages: 750

Learn about the EJB 2.0 specification

Develop EJBs with Studio Application Developer

Deploy EJBs to WebSphere Application Server

This IBM Redbook provides detailed information on how to effectively use WebSphere Studio

Application Developer for the development of applications based on the Enterprise JavaBeans

(EJB) architecture, and deployment of such applications to a WebSphere Application Server.

Throughout the book, we provide examples based on a simple banking application with an

underlying relational database.

In Part 1, we introduce EJBs as a part of Java 2 Enterprise Edition (J2EE) and cover the basic

concepts and the architecture. In particular we point out the new functions introduced with the

EJB 2.0 specification that provide, for example, enhanced functionality for container-managed

persistence entity beans and message-driven beans. We also provide best practice guidelines for

successful implementations of EJBs.

In Part 2, we introduce the sample banking application and then implement entity beans, session

beans, and message-driven beans using WebSphere Studio Application Developer. We also

implement finder methods, different mapping strategies, and simple clients that use the EJBs. At

the end, we describe how to deploy EJB applications to a WebSphere Application Server.

Message-driven bean clients

Testing the MDB

Transaction types

Summary

Chapter 17. Client development

Type of clients

References

Developing a servlet client

Developing a Struts-based Web client

J2EE client container

Developing a message-driven bean client

GUI client using access beans

Client using a Web service

Externalizing strings

Summary

Chapter 18. Deployment of enterprise applications

Enterprise application

Configuring the WebSphere Application Server

Installing an enterprise application

Testing the ITSO banking application

Application Assembly Tool

Command-line tools

Summary

Chapter 19. Application Developer team development environment

Introduction

Setting up a team repository

Concurrent Versions System

Development scenario for a single user

Development scenario for a team

Part 3: Appendixes

Appendix A. Setting up the environment

Installation planning

Installing DB2 UDB

Installing IBM WebSphere Application Server

Installation of WebSphere Studio Application Developer

Setting up the EJBBANK database

Appendix B. Additional material

Locating the Web material

Using the Web material

Abbreviations and acronyms

Related publications

IBM Redbooks

Referenced Web sites

How to get IBM Redbooks

Back cover

Index

• Table of Contents

• Index

EJB 2.0 Development with WebSphere Studio Application Developer

By Ueli Wahli, Wouter Denayer, Lars Schunk, Deborah Shaddon, Martin Weiss

Publisher: IBM

Pub Date: April 11, 2003

ISBN: 0-7384-2609-1

Pages: 750

Learn about the EJB 2.0 specification

Develop EJBs with Studio Application Developer

Deploy EJBs to WebSphere Application Server

This IBM Redbook provides detailed information on how to effectively use WebSphere Studio

Application Developer for the development of applications based on the Enterprise JavaBeans

(EJB) architecture, and deployment of such applications to a WebSphere Application Server.

Throughout the book, we provide examples based on a simple banking application with an

underlying relational database.

In Part 1, we introduce EJBs as a part of Java 2 Enterprise Edition (J2EE) and cover the basic

concepts and the architecture. In particular we point out the new functions introduced with the

EJB 2.0 specification that provide, for example, enhanced functionality for container-managed

persistence entity beans and message-driven beans. We also provide best practice guidelines for

successful implementations of EJBs.

In Part 2, we introduce the sample banking application and then implement entity beans, session

beans, and message-driven beans using WebSphere Studio Application Developer. We also

implement finder methods, different mapping strategies, and simple clients that use the EJBs. At

the end, we describe how to deploy EJB applications to a WebSphere Application Server.

Copyright

International Technical Support Organization

EJB 2.0 Development with WebSphere Studio Application Developer

April 2003

Note

Before using this information and the product it supports, read the information in

"Notices" on page xix.

First Edition (April 2003)

This edition applies to Version 5 of WebSphere Studio Application Developer and WebSphere

Application Server and to the Enterprise JavaBean specification 2.0.

This book is similar to the redbook EJB Development with VisualAge for Java for WebSphere

Application Server, SG24-6144, but uses WebSphere Studio Application Developer as the

development tool.

© Copyright International Business Machines Corporation 2003. All rights reserved.

Note to U.S. Government Users Restricted Rights -- Use, duplication or disclosure restricted by

GSA ADP Schedule Contract with IBM Corp.

Notices

This information was developed for products and services offered in the U.S.A.

IBM may not offer the products, services, or features discussed in this document in other

countries. Consult your local IBM representative for information on the products and services

currently available in your area. Any reference to an IBM product, program, or service is not

intended to state or imply that only that IBM product, program, or service may be used. Any

functionally equivalent product, program, or service that does not infringe any IBM intellectual

property right may be used instead. However, it is the user's responsibility to evaluate and verify

the operation of any non-IBM product, program, or service.

IBM may have patents or pending patent applications covering subject matter described in this

document. The furnishing of this document does not give you any license to these patents. You

can send license inquiries, in writing, to:

• Table of Contents

• Index

EJB 2.0 Development with WebSphere Studio Application Developer

By Ueli Wahli, Wouter Denayer, Lars Schunk, Deborah Shaddon, Martin Weiss

Publisher: IBM

Pub Date: April 11, 2003

ISBN: 0-7384-2609-1

Pages: 750

Learn about the EJB 2.0 specification

Develop EJBs with Studio Application Developer

Deploy EJBs to WebSphere Application Server

This IBM Redbook provides detailed information on how to effectively use WebSphere Studio

Application Developer for the development of applications based on the Enterprise JavaBeans

(EJB) architecture, and deployment of such applications to a WebSphere Application Server.

Throughout the book, we provide examples based on a simple banking application with an

underlying relational database.

In Part 1, we introduce EJBs as a part of Java 2 Enterprise Edition (J2EE) and cover the basic

concepts and the architecture. In particular we point out the new functions introduced with the

EJB 2.0 specification that provide, for example, enhanced functionality for container-managed

persistence entity beans and message-driven beans. We also provide best practice guidelines for

successful implementations of EJBs.

In Part 2, we introduce the sample banking application and then implement entity beans, session

beans, and message-driven beans using WebSphere Studio Application Developer. We also

implement finder methods, different mapping strategies, and simple clients that use the EJBs. At

the end, we describe how to deploy EJB applications to a WebSphere Application Server.

IBM Director of Licensing, IBM Corporation, North Castle Drive Armonk, NY 10504-1785 U.S.A .

The following paragraph does not apply to the United Kingdom or any other country

where such provisions are inconsistent with local law: INTERNATIONAL BUSINESS

MACHINES CORPORATION PROVIDES THIS PUBLICATION "AS IS" WITHOUT WARRANTY OF ANY

KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED

WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR

PURPOSE. Some states do not allow disclaimer of express or implied warranties in certain

transactions, therefore, this statement may not apply to you.

This information could include technical inaccuracies or typographical errors. Changes are

periodically made to the information herein; these changes will be incorporated in new editions

of the publication. IBM may make improvements and/or changes in the product(s) and/or the

program(s) described in this publication at any time without notice.

Any references in this information to non-IBM Web sites are provided for convenience only and

do not in any manner serve as an endorsement of those Web sites. The materials at those Web

sites are not part of the materials for this IBM product and use of those Web sites is at your own

risk.

IBM may use or distribute any of the information you supply in any way it believes appropriate

without incurring any obligation to you.

Information concerning non-IBM products was obtained from the suppliers of those products,

their published announcements or other publicly available sources. IBM has not tested those

products and cannot confirm the accuracy of performance, compatibility or any other claims

related to non-IBM products. Questions on the capabilities of non-IBM products should be

addressed to the suppliers of those products.

This information contains examples of data and reports used in daily business operations. To

illustrate them as completely as possible, the examples include the names of individuals,

companies, brands, and products. All of these names are fictitious and any similarity to the

names and addresses used by an actual business enterprise is entirely coincidental.

COPYRIGHT LICENSE:

This information contains sample application programs in source language, which illustrates

programming techniques on various operating platforms. You may copy, modify, and distribute

these sample programs in any form without payment to IBM, for the purposes of developing,

using, marketing or distributing application programs conforming to the application

programming interface for the operating platform for which the sample programs are written.

These examples have not been thoroughly tested under all conditions. IBM, therefore, cannot

guarantee or imply reliability, serviceability, or function of these programs. You may copy,

modify, and distribute these sample programs in any form without payment to IBM for the

purposes of developing, using, marketing, or distributing application programs conforming to

IBM's application programming interfaces.

Trademarks

The following terms are trademarks of the International Business Machines Corporation in the

United States, other countries, or both:

• Table of Contents

• Index

EJB 2.0 Development with WebSphere Studio Application Developer

By Ueli Wahli, Wouter Denayer, Lars Schunk, Deborah Shaddon, Martin Weiss

Publisher: IBM

Pub Date: April 11, 2003

ISBN: 0-7384-2609-1

Pages: 750

Learn about the EJB 2.0 specification

Develop EJBs with Studio Application Developer

Deploy EJBs to WebSphere Application Server

This IBM Redbook provides detailed information on how to effectively use WebSphere Studio

Application Developer for the development of applications based on the Enterprise JavaBeans

(EJB) architecture, and deployment of such applications to a WebSphere Application Server.

Throughout the book, we provide examples based on a simple banking application with an

underlying relational database.

In Part 1, we introduce EJBs as a part of Java 2 Enterprise Edition (J2EE) and cover the basic

concepts and the architecture. In particular we point out the new functions introduced with the

EJB 2.0 specification that provide, for example, enhanced functionality for container-managed

persistence entity beans and message-driven beans. We also provide best practice guidelines for

successful implementations of EJBs.

In Part 2, we introduce the sample banking application and then implement entity beans, session

beans, and message-driven beans using WebSphere Studio Application Developer. We also

implement finder methods, different mapping strategies, and simple clients that use the EJBs. At

the end, we describe how to deploy EJB applications to a WebSphere Application Server.

Redbooks(logo)™ DB2 Universal Database™ Lotus®

Redbooks™ DB2® MQSeries®

AIX® Encina® Redbooks™

Cloudscape™ Informix® SP™

CICS® IBM® VisualAge®

Domino™ IMS™ WebSphere®

The following terms are trademarks of other companies:

ActionMedia, LANDesk, MMX, Pentium and ProShare are trademarks of Intel Corporation in the

United States, other countries, or both.

Microsoft, Windows, Windows NT, and the Windows logo are trademarks of Microsoft Corporation

in the United States, other countries, or both.

Java and all Java-based trademarks and logos are trademarks or registered trademarks of Sun

Microsystems, Inc. in the United States, other countries, or both.

C-bus is a trademark of Corollary, Inc. in the United States, other countries, or both.

UNIX is a registered trademark of The Open Group in the United States and other countries.

SET, SET Secure Electronic Transaction, and the SET Logo are trademarks owned by SET Secure

Electronic Transaction LLC.

Other company, product, and service names may be trademarks or service marks of others.

• Table of Contents

• Index

EJB 2.0 Development with WebSphere Studio Application Developer

By Ueli Wahli, Wouter Denayer, Lars Schunk, Deborah Shaddon, Martin Weiss

Publisher: IBM

Pub Date: April 11, 2003

ISBN: 0-7384-2609-1

Pages: 750

Learn about the EJB 2.0 specification

Develop EJBs with Studio Application Developer

Deploy EJBs to WebSphere Application Server

This IBM Redbook provides detailed information on how to effectively use WebSphere Studio

Application Developer for the development of applications based on the Enterprise JavaBeans

(EJB) architecture, and deployment of such applications to a WebSphere Application Server.

Throughout the book, we provide examples based on a simple banking application with an

underlying relational database.

In Part 1, we introduce EJBs as a part of Java 2 Enterprise Edition (J2EE) and cover the basic

concepts and the architecture. In particular we point out the new functions introduced with the

EJB 2.0 specification that provide, for example, enhanced functionality for container-managed

persistence entity beans and message-driven beans. We also provide best practice guidelines for

successful implementations of EJBs.

In Part 2, we introduce the sample banking application and then implement entity beans, session

beans, and message-driven beans using WebSphere Studio Application Developer. We also

implement finder methods, different mapping strategies, and simple clients that use the EJBs. At

the end, we describe how to deploy EJB applications to a WebSphere Application Server.

Preface

This IBM® Redbook provides detailed information on how to effectively use WebSphere® Studio

Application Developer for the development of applications based on the Enterprise JavaBeans

(EJB) architecture, and deployment of such applications to a WebSphere Application Server.

Throughout the book, we provide examples based on a simple banking application with an

underlying relational database.

In Part 1, we introduce EJBs as a part of Java 2 Enterprise Edition (J2EE) and cover the basic

concepts and the architecture. In particular we point out the new functions introduced with the

EJB 2.0 specification that provide, for example, enhanced functionality for container-managed

persistence entity beans and message-driven beans. We also provide best practice guidelines for

successful implementations of EJBs.

In Part 2, we introduce the sample banking application and then implement entity beans,

session beans, and message-driven beans using WebSphere Studio Application Developer. We

also implement finder methods, different mapping strategies, and simple clients that use the

EJBs. At the end, we describe how to deploy EJB applications to a WebSphere Application Server.

• Table of Contents

• Index

EJB 2.0 Development with WebSphere Studio Application Developer

By Ueli Wahli, Wouter Denayer, Lars Schunk, Deborah Shaddon, Martin Weiss

Publisher: IBM

Pub Date: April 11, 2003

ISBN: 0-7384-2609-1

Pages: 750

Learn about the EJB 2.0 specification

Develop EJBs with Studio Application Developer

Deploy EJBs to WebSphere Application Server

This IBM Redbook provides detailed information on how to effectively use WebSphere Studio

Application Developer for the development of applications based on the Enterprise JavaBeans

(EJB) architecture, and deployment of such applications to a WebSphere Application Server.

Throughout the book, we provide examples based on a simple banking application with an

underlying relational database.

In Part 1, we introduce EJBs as a part of Java 2 Enterprise Edition (J2EE) and cover the basic

concepts and the architecture. In particular we point out the new functions introduced with the

EJB 2.0 specification that provide, for example, enhanced functionality for container-managed

persistence entity beans and message-driven beans. We also provide best practice guidelines for

successful implementations of EJBs.

In Part 2, we introduce the sample banking application and then implement entity beans, session

beans, and message-driven beans using WebSphere Studio Application Developer. We also

implement finder methods, different mapping strategies, and simple clients that use the EJBs. At

the end, we describe how to deploy EJB applications to a WebSphere Application Server.

The team that wrote this redbook

This redbook was produced by a team of specialists from around the world working at the

International Technical Support Organization, San Jose Center.

Ueli Wahli is a Consultant IT Specialist at the IBM International Technical Support Organization

in San Jose, California. Before joining the ITSO 18 years ago, Ueli worked in technical support at

IBM Switzerland. He writes extensively and teaches IBM classes worldwide on application

development, object technology, VisualAge® for Java, WebSphere Application Server, and lately

WebSphere Studio products. In his ITSO career, Ueli has produced over 25 Redbooks™. Ueli

holds a degree in Mathematics from the Swiss Federal Institute of Technology.

Wouter Denayer is an IT Architect with IBM Belgium. He currently focuses on application

architecture within the WebSphere family while using existing open source components and tools

wherever possible. Wouter started working with Web technology in 1993 and has since acquired

knowledge of many different platforms and products. This experience allow him to better

understand the client environment on application integration projects.

Lars Schunk is a Consultant IT Specialist in IBM Global Services Germany. He has three years

of experience in design and development of Internet and intranet application solutions. He holds

a degree in business informatics from the University of Applied Sciences in North-East-Lower￾Saxony, Germany. His areas of expertise include J2EE, EJB, WebSphere, and Tomcat.

Deborah Shaddon is an IT Architect in the IBM Global AMS Delivery Group based in Chicago,

Illinois. She is a co-author of the redbook Developing Servlets and JSPs with VisualAge for Java

and WebSphere Studio, SG24-5755. She has over 15 years of application development and

architecture experience, including mainframe, client/server, and e-business technology

solutions. Deborah works closely with IBM customers on application and enterprise architectural

solutions, across multiple industry sectors including retail, banking, insurance, real estate

management, and credit. Her current areas of expertise include distributed component-based

architectures, primarily J2EE, service-oriented architectures, J2EE application and integration

frameworks, and agile development techniques. She works with many IBM products, including

WebSphere Application Server, Application Developer, WebSphere MQ, and Lotus® Domino™.

Deborah holds a degree in Business Information Systems from Bradley University, Peoria,

Illinois, and is currently pursuing a Masters in Software Engineering from DePaul University,

Chicago, Illinois.

Martin Weiss worked in IBM Switzerland for more than 20 years, most recently in the field of

WebSphere application development. In 2001 he established his own company, Martin Weiss

Informatik (www.mw-informatik.ch). Martin has sound experience in Enterprise JavaBeans

technology and has been working with the WebSphere development tools since the early days of

EJBs. He is a Certified WebSphere Specialist and provides consulting services and education in

Switzerland. Martin is a co-author of the Redbooks Design and Implement Servlets, JSPs, and

EJBs, SG24-5754, and Enterprise JavaBeans Development Using VisualAge for Java, SG24-5429.

• Table of Contents

• Index

EJB 2.0 Development with WebSphere Studio Application Developer

By Ueli Wahli, Wouter Denayer, Lars Schunk, Deborah Shaddon, Martin Weiss

Publisher: IBM

Pub Date: April 11, 2003

ISBN: 0-7384-2609-1

Pages: 750

Learn about the EJB 2.0 specification

Develop EJBs with Studio Application Developer

Deploy EJBs to WebSphere Application Server

This IBM Redbook provides detailed information on how to effectively use WebSphere Studio

Application Developer for the development of applications based on the Enterprise JavaBeans

(EJB) architecture, and deployment of such applications to a WebSphere Application Server.

Throughout the book, we provide examples based on a simple banking application with an

underlying relational database.

In Part 1, we introduce EJBs as a part of Java 2 Enterprise Edition (J2EE) and cover the basic

concepts and the architecture. In particular we point out the new functions introduced with the

EJB 2.0 specification that provide, for example, enhanced functionality for container-managed

persistence entity beans and message-driven beans. We also provide best practice guidelines for

successful implementations of EJBs.

In Part 2, we introduce the sample banking application and then implement entity beans, session

beans, and message-driven beans using WebSphere Studio Application Developer. We also

implement finder methods, different mapping strategies, and simple clients that use the EJBs. At

the end, we describe how to deploy EJB applications to a WebSphere Application Server.

Thanks to the following people for their contributions to this project:

Daniel Berg, Chuck Bridgham, Justin Hill, and Kevin Williams of the Application Developer

team in IBM Raleigh

Chris Brealey and Timothy Deboer of the Application Developer team in IBM Toronto

Karri Carlson, Eric Erpenbach, Todd Johnson, Albert Lee, and Michael Schmitt of the

WebSphere team in IBM Rochester

• Table of Contents

• Index

EJB 2.0 Development with WebSphere Studio Application Developer

By Ueli Wahli, Wouter Denayer, Lars Schunk, Deborah Shaddon, Martin Weiss

Publisher: IBM

Pub Date: April 11, 2003

ISBN: 0-7384-2609-1

Pages: 750

Learn about the EJB 2.0 specification

Develop EJBs with Studio Application Developer

Deploy EJBs to WebSphere Application Server

This IBM Redbook provides detailed information on how to effectively use WebSphere Studio

Application Developer for the development of applications based on the Enterprise JavaBeans

(EJB) architecture, and deployment of such applications to a WebSphere Application Server.

Throughout the book, we provide examples based on a simple banking application with an

underlying relational database.

In Part 1, we introduce EJBs as a part of Java 2 Enterprise Edition (J2EE) and cover the basic

concepts and the architecture. In particular we point out the new functions introduced with the

EJB 2.0 specification that provide, for example, enhanced functionality for container-managed

persistence entity beans and message-driven beans. We also provide best practice guidelines for

successful implementations of EJBs.

In Part 2, we introduce the sample banking application and then implement entity beans, session

beans, and message-driven beans using WebSphere Studio Application Developer. We also

implement finder methods, different mapping strategies, and simple clients that use the EJBs. At

the end, we describe how to deploy EJB applications to a WebSphere Application Server.

Become a published author

Join us for a two- to six-week residency program! Help write an IBM Redbook dealing with

specific products or solutions, while getting hands-on experience with leading-edge technologies.

You'll team with IBM technical professionals, Business Partners and/or customers.

Your efforts will help increase product acceptance and customer satisfaction. As a bonus, you'll

develop a network of contacts in IBM development labs, and increase your productivity and

marketability.

Find out more about the residency program, browse the residency index, and apply online at:

ibm.com/redbooks/residencies.html

• Table of Contents

• Index

EJB 2.0 Development with WebSphere Studio Application Developer

By Ueli Wahli, Wouter Denayer, Lars Schunk, Deborah Shaddon, Martin Weiss

Publisher: IBM

Pub Date: April 11, 2003

ISBN: 0-7384-2609-1

Pages: 750

Learn about the EJB 2.0 specification

Develop EJBs with Studio Application Developer

Deploy EJBs to WebSphere Application Server

This IBM Redbook provides detailed information on how to effectively use WebSphere Studio

Application Developer for the development of applications based on the Enterprise JavaBeans

(EJB) architecture, and deployment of such applications to a WebSphere Application Server.

Throughout the book, we provide examples based on a simple banking application with an

underlying relational database.

In Part 1, we introduce EJBs as a part of Java 2 Enterprise Edition (J2EE) and cover the basic

concepts and the architecture. In particular we point out the new functions introduced with the

EJB 2.0 specification that provide, for example, enhanced functionality for container-managed

persistence entity beans and message-driven beans. We also provide best practice guidelines for

successful implementations of EJBs.

In Part 2, we introduce the sample banking application and then implement entity beans, session

beans, and message-driven beans using WebSphere Studio Application Developer. We also

implement finder methods, different mapping strategies, and simple clients that use the EJBs. At

the end, we describe how to deploy EJB applications to a WebSphere Application Server.

Comments welcome

Your comments are important to us!

We want our Redbooks to be as helpful as possible. Send us your comments about this or other

Redbooks in one of the following ways:

Use the online Contact us review redbook form found at:

ibm.com/redbooks

Send your comments in an Internet note to:

[email protected]

Mail your comments to:

IBM Corporation, International Technical Support Organization

Dept. QXXE Building 80-E2

650 Harry Road

San Jose, California 95120-6099

• Table of Contents

• Index

EJB 2.0 Development with WebSphere Studio Application Developer

By Ueli Wahli, Wouter Denayer, Lars Schunk, Deborah Shaddon, Martin Weiss

Publisher: IBM

Pub Date: April 11, 2003

ISBN: 0-7384-2609-1

Pages: 750

Learn about the EJB 2.0 specification

Develop EJBs with Studio Application Developer

Deploy EJBs to WebSphere Application Server

This IBM Redbook provides detailed information on how to effectively use WebSphere Studio

Application Developer for the development of applications based on the Enterprise JavaBeans

(EJB) architecture, and deployment of such applications to a WebSphere Application Server.

Throughout the book, we provide examples based on a simple banking application with an

underlying relational database.

In Part 1, we introduce EJBs as a part of Java 2 Enterprise Edition (J2EE) and cover the basic

concepts and the architecture. In particular we point out the new functions introduced with the

EJB 2.0 specification that provide, for example, enhanced functionality for container-managed

persistence entity beans and message-driven beans. We also provide best practice guidelines for

successful implementations of EJBs.

In Part 2, we introduce the sample banking application and then implement entity beans, session

beans, and message-driven beans using WebSphere Studio Application Developer. We also

implement finder methods, different mapping strategies, and simple clients that use the EJBs. At

the end, we describe how to deploy EJB applications to a WebSphere Application Server.

Part 1: EJB architecture and concepts

In Part 1, we introduce Enterprise JavaBeans as part of J2EE. We describe the EJB

architecture and concepts, and introduce the different types of EJBs.

We discuss in detail each type of EJB and point out what is new with the EJB 2.0

specification. In each chapter we conclude with best practice guidelines for successful

implementation of EJB-based applications.

• Table of Contents

• Index

EJB 2.0 Development with WebSphere Studio Application Developer

By Ueli Wahli, Wouter Denayer, Lars Schunk, Deborah Shaddon, Martin Weiss

Publisher: IBM

Pub Date: April 11, 2003

ISBN: 0-7384-2609-1

Pages: 750

Learn about the EJB 2.0 specification

Develop EJBs with Studio Application Developer

Deploy EJBs to WebSphere Application Server

This IBM Redbook provides detailed information on how to effectively use WebSphere Studio

Application Developer for the development of applications based on the Enterprise JavaBeans

(EJB) architecture, and deployment of such applications to a WebSphere Application Server.

Throughout the book, we provide examples based on a simple banking application with an

underlying relational database.

In Part 1, we introduce EJBs as a part of Java 2 Enterprise Edition (J2EE) and cover the basic

concepts and the architecture. In particular we point out the new functions introduced with the

EJB 2.0 specification that provide, for example, enhanced functionality for container-managed

persistence entity beans and message-driven beans. We also provide best practice guidelines for

successful implementations of EJBs.

In Part 2, we introduce the sample banking application and then implement entity beans, session

beans, and message-driven beans using WebSphere Studio Application Developer. We also

implement finder methods, different mapping strategies, and simple clients that use the EJBs. At

the end, we describe how to deploy EJB applications to a WebSphere Application Server.

Chapter 1. Introduction to Enterprise

JavaBeans

This chapter introduces Enterprise JavaBeans and shows how they are integrated in the J2EE

platform.

Readers who are already familiar to the EJB standard can skip this chapter.

Tải ngay đi em, còn do dự, trời tối mất!