ed2kers 电驴资源下载站

《21天学通J2EE和一些J2EE书及代码》(SAM Teach Yourself J2EE in 21 Days,Second Edition)[PDF](Nice English version)

《21天学通J2EE和一些J2EE书及代码》(SAM Teach Yourself J2EE in 21 Days,Second Edition)[PDF](Nice English version)
类别:
资料 - 计算机教程
状态:
普通资源
摘要:
发行时间: 2006年11月06日对白语言: 英语
发布:
2006-11-06 07:38:33
更新:
2006-11-06 07:38:33

电驴资源

电驴资源简介

中文名: 21天学通J2EE和一些J2EE书及代码英文名: SAM Teach Yourself J2EE in 21 Days,Second Edition版本: [PDF](Nice English version)发行时间: 2006年11月06日地区: 美国对白语言: 英语简介:
【杀毒软件】:卡巴斯基
【常驻侍服】:DonkeyServer No1/DonkeyServer No2
【供享时间】:周一到周五每晚12点到第二天10点/周六周日不定
【特别注明】:此版本来自互联网~如若喜欢请购买正版
Teach Yourself J2EE in 21 Days - Sams (eBook-pdf)
Book Description
Sams Teach Yourself J2EE in 21 Days, 2/E introduces the Java 1 Enterprise Edition to Java Programmers in 21 straightforward, example-driven lessons.
Covers all the features of J2EE, including how they work together to build enterprise applications and Web Services.
Completely up-to-date with changes in EJB 2.1, JSP 2.0, and J2EE 1.4.
A great next step for readers of the best selling Sams Teach Yourself Java in 21 Days. J2EE has become required knowledge for any serious Java developer, but learning this large and complex specification requires a substantial investment of time and energy. Sams Teach Yourself J2EE in 21 Days, 2/E presents the enterp4ise Java architecture in accessible, easy-to-comprehend lessons, describing how each J2EE tool solves the challenges of n-Tier development. Using the architecture as a roadmap, chapters describe Enterprise JavaBeans (EJB), JavaServer Pages (JSP), Java Servlets, and more, giving readers a full understanding of J2EE development. Further chapters cover the role of XML, custom JSP taps, creating J2EE Web Services, and how Java Connectors allow J2EE applications to interact with legacy and non-Java systems. The book finishes with sample applications, which put all the pieces together, including an example using J2EE to create Web Services. Along the way, every concept is illustrated with practical, real-world examples to ensure understanding by Java students and experts alike.
【内容简介】
在短短21天的课程里,您能学到成为熟练的J2EE 1.4开发人员所需的全部知识和技巧。通过对本书的学习,您将会使用Java Server Pages和Servlet创建Java Web站点,利用Enterprise JavaBeans和Web服务来开发健壮的企业应用程序。 立即开始创建企业应用程序。通过学习本书中精心组织的21天课程,您将学会使用J2EE 1.4构建分布式系统。 每次学习都会向J2EE深入一步。您可以一天学完一章课程,在不到一个月的时间里掌握J2EE的核心概念,进行Web服务开发。 检验您对所学知识的掌握程度。每一章最后有很多问题、答案和练习,便于您进一步学习。 ●把Servlet和JSP结合使用,将Web表示与编程分离开来; ●利用JSP表达式语言和JavaServer Pages标准标记库; ●使用Enterprise JavaBeans 2.1创建可重用组件; ●使用JMS和消息驱动Bean实现通信; ●在J2EE应用程序中合并Javamail、XML和XSLT; ●使用JAX-RPC和SAAJ开发RPC型和消息型J2EE Web服务。 本书从J2EE的基础知识开始,全面介绍了EJB、CMP、JSP、XML、Web服务等相关知识。每天的课程都提供了一些练习,有助于读者巩固所学知识。书中还提供了一个完整的求职代理示例,读者可以结合本书内容,动手操作完成这个示例。 本书共分为21课,每天一课,共三周时间可以完成全部内容的学习。第一周的课程讲述了J2EE和EJB的相关知识,内容包括N层开发、J2EE平台和角色、命名和目录服务、EJB简介、会话EJB、实体EJB、CMP和EJB QL等;第二周的课程介绍了异步交互和如何开发基于Web的组件,包括事务处理与持久性、Java消息服务、消息驱动Bean、Java Mail、Servlet、JSP、JSP标记库等;第三周的课程介绍了企业应用的安全性和完整性、XML文档转换、模式、整合外部资源、Web服务等。 本书适合于有一定Java编程经验的程序员阅读。通过本书的学习,能将您的Java技能提高到一个新的水平。
Table of Contents
Introduction. WEEK 1. INTRODUCING J2EE AND ENTERPRISE JAVABEANS. 1. The Challenge of N-Tier Development. 2. The J2EE Platform and Roles. 3. Naming and Directory Services. 4. Introduction to Enterprise JavaBeans. 5. Session EJBs. 6. Entity EJBs. 7. Container-Managed Persistence and EJB Query Language. WEEK 2. DEVELOPING J2EE APPLICATIONS. 8. Transactions and Persistence. 9. Java Message Service. 10. Message Driven Beans. 11. JavaMail. 12. Servlets. 13. JavaServer Pages. 14. JSP Tag Libraries. WEEK 3. INTEGRATING J2EE INTO THE ENTERPRISE. 15. Security. 16. Integrating XML with J2EE. 17. Transforming XML Documents. 18. Patterns. 19. Integrating with External Resources. 20. Using RPC-Style Web Services with J2EE. 21. Message-Style Web Services and Web Service Registries. APPENDICES. Appendix A. An Overview of XML. Appendix B. The Java Community Process. Glossary. Index.
(ebook-pdf) - O Reilly - Java RMI
Book Description
Java RMI contains a wealth of experience in designing and implementing Java s Remote Method Invocation. If you re a novice reader, you will quickly be brought up to speed on why RMI is such a powerful yet easy to use tool for distributed programming, while experts can gain valuable experience for constructing their own enterprise and distributed systems.
With Java RMI, you ll learn tips and tricks for making your RMI code excel. The book also provides strategies for working with serialization, threading, the RMI registry, sockets and socket factories, activation, dynamic class downloading, HTTP tunneling, distributed garbage collection, JNDI, and CORBA. In short, a treasure trove of valuable RMI knowledge packed into one book.
Table of Contents
Part I. Designing and Building: The Basics of RMI Applications
1. Streams
The Core Classes
Viewing a File
Layering Streams
Readers and Writers
2. Sockets
Internet Definitions
Sockets
ServerSockets
Customizing Socket Behavior
Special-Purpose Sockets
Using SSL
3. A Socket-Based Printer Server
A Network-Based Printer
The Basic Objects
The Protocol
The Application Itself
Evolving the Application
4. The Same Server, Written Using RMI
The Basic Structure of RMI
The Architecture Diagram Revisited
Implementing the Basic Objects
The Rest of the Server
The Client Application
Summary
5. Introducing the Bank Example
The Bank Example
Sketching a Rough Architecture
The Basic Use Case
Additional Design Decisions
A Distributed Architecture for the Bank Example
Problems That Arise in Distributed Applications
6. Deciding on the Remote Server
A Little Bit of Bias
Important Questions When Thinking About Servers
Should We Implement Bank or Account?
7. Designing the Remote Interface
Important Questions When Designing Remote Interfaces
Building the Data Objects
Accounting for Partial Failure
8. Implementing the Bank Server
The Structure of a Server
Implementing the Server
Generating Stubs and Skeletons
9. The Rest of the Application
The Need for Launch Code
Our Actual Launch Code
Build Test Applications
Build the Client Application
Deploying the Application
Part II. Drilling Down: Scalability
10. Serialization
The Need for Serialization
Using Serialization
How to Make a Class Serializable
The Serialization Algorithm
Versioning Classes
Performance Issues
The Externalizable Interface
11. Threads
More Than One Client
Basic Terminology
Threading Concepts
Support for Threads in Java
Deadlock
Threading and RMI
12. Implementing Threading
The Basic Task
Guidelines for Threading
Pools: An Extended Example
Some Final Words on Threading
13. Testing a Distributed Application
Testing the Bank Application
14. The RMI Registry
Why Use a Naming Service?
The RMI Registry
The RMI Registry Is an RMI Server
Examining the Registry
Limitations of the RMI Registry
Security Issues
15. Naming Services
Basic Design, Terminology, and Requirements
Requirements for Our Naming Service
Federation and Threading
The Context Interface
The Value Objects
ContextImpl
Switching Between Naming Services
The Java Naming and Directory Interface (JNDI)
16. The RMI Runtime
Reviewing the Mechanics of a Remote Method Call
Distributed Garbage Collection
RMI s Logging Facilities
Other JVM Parameters
17. Factories and the Activation Framework
Resource Management
Factories
Implementing a Generic Factory
A Better Factory
Persistence and the Server Lifecycle
Activation
A Final Word About Factories
Part III. Advanced Topics
18. Using Custom Sockets
Custom Socket Factories
Incorporating a Custom Socket into an Application
19. Dynamic Classloading
Deploying Can Be Difficult
Classloaders
How Dynamic Classloading Works
The Class Server
Using Dynamic Classloading in an Application
20. Security Policies
A Different Kind of Security Problem
Permissions
Security Managers
Setting Up a Security Policy
21. Multithreaded Clients
Different Types of Remote Methods
Handling Printer-Type Methods
Handling Report-Type Methods
Generalizing from These Examples
22. HTTP Tunneling
Firewalls
CGI and Dynamic Content
HTTP Tunneling
A Servlet Implementation of HTTP Tunneling
Modifying the Tunneling Mechanism
The Bank via HTTP Tunneling
Drawbacks of HTTP Tunneling
Disabling HTTP Tunneling
23. RMI, CORBA, and RMI/IIOP
How CORBA Works
The Bank Example in CORBA
A Quick Comparison of CORBA and RMI
RMI on Top of CORBA
Converting the Bank Example to RMI/IIOP
Index
Tutorial for building J2EE Applications using JBOSS and ECLIPSE
Table of Contents
Tutorial.
Preface
About the Authors
Acknowledgments
Disclaimer
Introduction
Prerequisites for this tutorial
Tools required for this tutorial
Case Study Overview
Chapter 1. Configuration of ECLIPSE using JBOSS and LOMBOZ
Install Eclipse
Install JBOSS
Creating Database Schema
Install Lomboz
Lomboz Configuration
Configure JBOSS to run from within Eclipse
http://www.tusc.com.au/tutorial/html/index.html (2 of 12)05/03/2004 18.41.22
Tutorial for building J2EE Applications using JBOSS and ECLIPSE
Test your configuration
Chapter 2. Overview Of J2EE Technology and Concepts
J2EE Components
J2EE Clients
Web Components
Business Components
Enterprise Information System Tier
J2EE Containers
Packaging
J2EE Platform Roles
Distributed Architecture in J2EE
Java Naming Directory Interface (JNDI) Architecture
Chapter 3. Creating a Stateless Session Bean
Tasks
Create J2EE Project
Create StoreAccess Stateless Bean
Setup DAO
Create StoreAccess s DAO Interface
Add Business Method
Implement DAO Interface
Add Callback Method
Deploy StoreAccess Bean
Create your Test Client
Test your Client
Chapter 4. Creating a Stateful Session Bean ( Coming Soon ....)
Tasks
Create StoreAccessState Stateful Bean
http://www.tusc.com.au/tutorial/html/index.html (3 of 12)05/03/2004 18.41.22
Tutorial for building J2EE Applications using JBOSS and ECLIPSE
Create StoreAccessSate s DAO Interface
Add Business Method
Add Callback Method
Implement DAO Interface
Deploy StoreAccessState Bean
Create your Test Client
Test your Client
Chapter 5. Creating a BMP Entity Bean
Tasks
Create Customer BMP Entity Bean
Create Customer s DAO Interface
Add Finder Methods
Add Business Methods
Implement Customer s DAO Interface :
Deploy Customer Bean
Add Create Method in StoreAccess
Add Business Method in StoreAccess
Create your Test Client
Test your Client
Exercise
Chapter 6. Creating a CMP Entity Bean
Tasks
Create Item CMP Entity Bean
Implement ejbCreate Method
Add Finder Methods
Add Business Methods
Add Callback Methods
Deploy Item Bean
Add Business Method in StoreAccess
http://www.tusc.com.au/tutorial/html/index.html (4 of 12)05/03/2004 18.41.22
Tutorial for building J2EE Applications using JBOSS and ECLIPSE
Create your Test Client
Test your Client
Exercise
Chapter 7. Creating a Message Driven Bean
Tasks
Create RequestItems MDB Bean
Create Immutable Value Object RequestItem
Implement onMessage Method
Deploy RequestItems Bean
Create Test Client
Test your Client
Exercise
Chapter 8. Creating Web Clients
Create AccessController Servlet
Implement init method
Implement methods doGet and doPost
Deploy AccessController Servlet
Test your Servlet
Create JSP Page
Add Html and JSP Tags
Deploy Module OnlineStore
Test your JSP Page
Chapter 9. Creating Web Services
Web Services Standards
Web Services In Java
Installing AXIS
http://www.tusc.com.au/tutorial/html/index.html (5 of 12)05/03/2004 18.41.22
Tutorial for building J2EE Applications using JBOSS and ECLIPSE
Configuring AXIS with JBOSS
Create the Web Service
Deploy the Web Service
Create Web Service Test Client
Test your Client
Create and Test Web Client
Create and Test VB.Net Client
Create and Test Perl Client
本人白天不定时开机, 一般晚上在家.
上传速度有限, 请大家帮忙分流 谢谢