没有合适的资源?快使用搜索试试~ 我知道了~
资源详情
资源评论
资源推荐
Version 8.1 SP4
December 2004
Copyright
Copyright © 2003 BEA Systems, Inc. All Rights Reserved.
Restricted Rights Legend
This software and documentation is subject to and made available only pursuant to the terms of the BEA
Systems License Agreement and may be used or copied only in accordance with the terms of that agreement.
It is against the law to copy the software except as specifically allowed in the agreement. This document may
not, in whole or in part, be copied, photocopied, reproduced, translated, or reduced to any electronic medium
or machine readable form without prior consent, in writing, from BEA Systems, Inc.
Use, duplication or disclosure by the U.S. Government is subject to restrictions set forth in the BEA Systems
License Agreement and in subparagraph (c)(1) of the Commercial Computer Software−Restricted Rights
Clause at FAR 52.227−19; subparagraph (c)(1)(ii) of the Rights in Technical Data and Computer Software
clause at DFARS 252.227−7013, subparagraph (d) of the Commercial Computer Software−−Licensing clause
at NASA FAR supplement 16−52.227−86; or their equivalent.
Information in this document is subject to change without notice and does not represent a commitment on the
part of BEA Systems. THE SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT
WARRANTY OF ANY KIND INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. FURTHER, BEA Systems DOES
NOT WARRANT, GUARANTEE, OR MAKE ANY REPRESENTATIONS REGARDING THE USE, OR
THE RESULTS OF THE USE, OF THE SOFTWARE OR WRITTEN MATERIAL IN TERMS OF
CORRECTNESS, ACCURACY, RELIABILITY, OR OTHERWISE.
Trademarks or Service Marks
BEA, Jolt, Tuxedo, and WebLogic are registered trademarks of BEA Systems, Inc. BEA Builder, BEA
Campaign Manager for WebLogic, BEA eLink, BEA Liquid Data for WebLogic, BEA Manager, BEA
WebLogic Commerce Server, BEA WebLogic Enterprise, BEA WebLogic Enterprise Platform, BEA
WebLogic Enterprise Security, BEA WebLogic Express, BEA WebLogic Integration, BEA WebLogic
Personalization Server, BEA WebLogic Platform, BEA WebLogic Portal, BEA WebLogic Server, BEA
WebLogic Workshop and How Business Becomes E−Business are trademarks of BEA Systems, Inc.
All other trademarks are the property of their respective companies.
Table of Contents
Developing Enterprise JavaBeans.....................................................................................................................1
Getting Started with EJB Project......................................................................................................................3
Developing Entity Beans.....................................................................................................................................7
Getting Started with Entity Beans.....................................................................................................................9
Defining an Entity Bean...................................................................................................................................13
Automatic Primary Key Generation...............................................................................................................19
Entity Relationships..........................................................................................................................................22
Query Methods and EJB QL...........................................................................................................................27
The Life Cycle of an Entity Bean.....................................................................................................................34
Accelerating Entity Bean Data Access............................................................................................................38
Bean−Managed Persistence..............................................................................................................................48
Developing Session Beans.................................................................................................................................50
Getting Started with Session Beans.................................................................................................................51
Defining a Session Bean....................................................................................................................................54
The Life Cycle of a Session Bean.....................................................................................................................57
Developing Message−Driven Beans.................................................................................................................61
Getting Started with Message−Driven Beans.................................................................................................62
Sending JMS Messages.....................................................................................................................................65
Processing JMS Messages................................................................................................................................69
Advanced Enterprise JavaBeans Topics.........................................................................................................71
Switching EJB Development to WebLogic Workshop..................................................................................72
EJBGen Tag Inheritance..................................................................................................................................74
EJBs and Transactions.....................................................................................................................................77
Developing Enterprise JavaBeans
i
Table of Contents
Summary of IDE Windows for EJB Project..................................................................................................81
Developing Enterprise JavaBeans
ii
Developing Enterprise JavaBeans
These topics show how to develop Enterprise JavaBeans. WebLogic Workshop provides you with the tools to
make EJB development much easier, taking care of many implementation details for you and allowing you to
focus on design.
Note. WebLogic Workshop 8.1 supports the development, importing, and building of EJB2.0 compliant
Enterprise JavaBeans. In addition, the WebLogic Platform supports the deployment only of EJB1.1 compliant
Enterprise JavaBeans. For more information on deploying existing EJBs, see How Do I: Add an Existing
Enterprise JavaBean to an Application? For more information on EJB specifications, see
http://java.sun.com/products/ejb/index.jsp.
Topics Included in This Section
Getting Started with EJB Project
Provides an overview of Enterprise JavaBeans and EJB Project, the role of ejbgen tags, and EJB controls.
Developing Entity Beans
This topics discusses the development of entity beans.
Developing Session Beans
This topics discusses the development of session beans.
Developing Message−Driven Beans
This topics discusses the development of message−driven beans.
Advanced Enterprise JavaBeans Topics
This topics discusses advanced Enterprise JavaBean development issues.
Summary of IDE Windows for EJB Project
Introduces new users of WebLogic Workshop to the various windows and panes using during EJB
development.
Related Topics
Getting Started: Enterprise JavaBeans
This tutorial provides a quick introduction to developing EJBs.
Tutorial: Enterprise JavaBeans
This advanced tutorial provides a step−by−step guide to developing Enterprise JavaBeans.
Enterprise JavaBean Samples
Developing Enterprise JavaBeans 1
剩余87页未读,继续阅读
zhanjiajun
- 粉丝: 5
- 资源: 11
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0