没有合适的资源?快使用搜索试试~ 我知道了~
首页21天掌握J2EE:Sams Teach Yourself J2EE in 21 Days 教程与代码
21天掌握J2EE:Sams Teach Yourself J2EE in 21 Days 教程与代码
5星 · 超过95%的资源 需积分: 3 5 下载量 47 浏览量
更新于2024-07-31
收藏 9.68MB PDF 举报
"《21天学通J2EE》是一本由Sams Publishing出版的电子书,旨在帮助读者在21天内掌握Java企业版(J2EE)技术。这本书由Martin Bond、Dan Haywood、Debbie Law、Andy Longshaw和Peter Roxburgh合作编写,于2002年首次印刷。书中涵盖了一系列J2EE相关的概念和技术,包括但不限于Servlets、JSP、EJB、JMS、JNDI等关键组件。"
J2EE(Java 2 Platform, Enterprise Edition)是Java平台的一个版本,专为开发和部署企业级应用程序而设计。它提供了多种服务、API和协议,用于构建分布式、多层架构的应用。J2EE的主要目标是简化企业应用的开发,通过提供标准组件和模块化结构来提高可重用性和可维护性。
本书《21天学通J2EE》的结构可能分为多个部分,逐步引导读者从基础到进阶学习J2EE技术。例如,前几章可能会介绍J2EE的基础知识,如Java编程基础和Web应用的基本架构。接着,会深入讲解Servlets和JSP,这是构建动态Web页面的基石。之后,可能涵盖Enterprise JavaBeans (EJB)技术,它是J2EE中处理业务逻辑的核心组件。此外,还会讨论JMS(Java Message Service)用于异步通信,以及JNDI(Java Naming and Directory Interface)用于服务发现和服务注册。
在学习过程中,读者可以期待通过实际案例和练习来加深理解。这些案例和代码示例将帮助读者将理论知识应用到实践中,从而快速提升技能。同时,书中可能还涉及了开发和部署J2EE应用的工具,如应用服务器(如Tomcat或JBoss)的使用方法,以及如何进行性能优化和调试。
值得注意的是,虽然书名宣称可以在21天内学通J2EE,但这并不意味着J2EE的所有方面都能在短短三周内完全掌握。J2EE是一个庞大的技术体系,需要持续学习和实践才能精通。然而,这本书提供了一个快速入门和系统学习的路径,对于初学者来说是一个很好的起点。
《21天学通J2EE》是一本面向初学者的实用教程,涵盖了J2EE平台的关键技术和最佳实践,旨在帮助读者在短时间内建立起对J2EE的全面认识,并具备开发J2EE应用的基本能力。
Processing Tag Bodies ........................................................................................637
JavaServer Pages Standard Tag Library (JSPTL) ..............................................640
Using the JSPTL with the J2EE RI ..............................................................641
Using the JSPTL
forEach Tag ....................................................................643
Other JSPTL Tags ........................................................................................645
JSPTL Scripting Language ............................................................................645
Other Jakarta Tag Libraries ..........................................................................646
Summary ............................................................................................................647
Q&A ....................................................................................................................647
Exercise ..............................................................................................................648
WEEK 3 Integrating J2EE into the Enterprise 651
DAY 15 Security 653
Security Overview ..............................................................................................654
Security Terminology ....................................................................................654
Common Security Technology ..........................................................................656
Symmetric Encryption ..................................................................................656
Asymmetric Encryption ................................................................................658
SSL and HTTPS ............................................................................................659
Checksums and Digests ................................................................................660
Digital Certificates ........................................................................................660
Security in J2EE ................................................................................................661
J2EE Security Terminology ..........................................................................661
Working with J2EE RI Security ....................................................................663
Security and EJBs ..............................................................................................666
Defining EJB Security ..................................................................................666
Defining Roles ..............................................................................................666
Defining the Security Identity ......................................................................668
Defining Method Permissions ......................................................................670
Mapping Principals to Roles ........................................................................674
Using Roles as the Security Identity ............................................................676
Security in Web Applications and Components ................................................682
Web Authentication ......................................................................................683
Configuring J2EE RI Basic Authentication ..................................................684
Declarative Web Authorization ....................................................................685
Programmatic Web Authorization ................................................................691
Adding Programmatic Web Security to the Case Study ..............................692
Using Secure Web Authentication Schemes ................................................694
Security and JNDI ............................................................................................695
Simple LDAP Authentication ........................................................................696
SASL Authentication ....................................................................................696
xvi Sams Teach Yourself J2EE in 21 Days
00 0672323842 FM 3/20/02 9:31 AM Page xvi
Contents xvii
Summary ............................................................................................................698
Q&A ....................................................................................................................699
Exercises ............................................................................................................699
D
AY 16 Integrating XML with J2EE 701
The Drive to Platform-Independent Data Exchange ..........................................702
Benefits and Characteristics of XML ............................................................703
Origins of XML ..................................................................................................703
Structure and Syntax of XML ............................................................................704
HTML and XML ..........................................................................................705
Structure of an XML Document ..................................................................705
Declarations ..................................................................................................706
Elements ........................................................................................................706
Well-Formed XML Documents ....................................................................708
Attributes ......................................................................................................708
Comments ......................................................................................................709
Creating Valid XML ..........................................................................................710
Document Type Definitions ..........................................................................710
Namespaces ..................................................................................................714
Enforcing Document Structure with an XML Schema ................................715
How XML Is Used in J2EE ..........................................................................718
Parsing XML ......................................................................................................718
The JAXP Packages ..........................................................................................720
Parsing XML using SAX ....................................................................................720
Document Object Model (DOM) Parser ..........................................................725
Modifying a DOM Tree ......................................................................................731
Java Architecture for XML Binding ..................................................................732
Differences Between JAXP and JAXB ........................................................733
Extending the Agency Case Study ....................................................................734
Step 1—Change Session Beans ....................................................................735
Step 2—Amend the
MessageSender Helper Class ........................................736
Step 3—Amend the
ApplicantMatch Message-Driven Bean ......................737
Summary ............................................................................................................739
Q&A ....................................................................................................................739
Exercises ............................................................................................................740
D
AY 17 Transforming XML Documents 741
Presenting XML to Clients ................................................................................742
Presenting XML to Browsers ........................................................................743
Extensible Stylesheet Language (XSL) ........................................................744
XSL-FO XSL Formatting Objects ................................................................744
00 0672323842 FM 3/20/02 9:31 AM Page xvii
Extensible Stylesheet Transformations (XSLT) ................................................745
Applying Stylesheets ....................................................................................746
Storing Transformed Documents on the Server ............................................746
Presenting XML Documents and Stylesheets to the Client ..........................747
Transforming the XML Document on the Server ........................................747
Using XALAN with J2EE ..................................................................................748
Transforming XML Documents with XALAN ............................................749
Using XALAN from the Command Line ....................................................750
Using XSLT in Java Applications ....................................................................751
XSLT Stylesheets ................................................................................................755
Template Rules ..............................................................................................756
Text Representation of XML Elements ......................................................761
Using XPath with XSLT ................................................................................762
Default Stylesheet Rules ..............................................................................764
Processing Attributes ....................................................................................765
Using Stylesheet Elements ................................................................................767
Processing Whitespace and Text ..................................................................767
Adding Comments ........................................................................................769
Attribute Values ............................................................................................770
Creating and Copying Elements ....................................................................771
Attributes and Attribute Sets ........................................................................774
Additional XSL Elements ............................................................................777
XSLT Compilers ................................................................................................780
Summary ............................................................................................................781
Q&A ....................................................................................................................782
Exercises ............................................................................................................782
D
AY 18 Patterns 787
J2EE Patterns ......................................................................................................788
What Are Patterns? ........................................................................................788
Why Use Patterns? ........................................................................................790
Types of Patterns ..........................................................................................790
J2EE Patterns ................................................................................................791
Pattern Catalogs ............................................................................................792
Applying J2EE-Specific Patterns ......................................................................792
Applying Patterns in a Context ....................................................................793
Generic Patterns ............................................................................................794
J2EE Presentation-Tier Patterns ....................................................................795
J2EE Business-Tier Patterns ..........................................................................795
J2EE Integration-Tier Patterns ......................................................................796
Patterns Within J2EE ....................................................................................797
xviii Sams Teach Yourself J2EE in 21 Days
00 0672323842 FM 3/20/02 9:31 AM Page xviii
Contents xix
Patterns in Context ..............................................................................................797
Analysing the Case Study ............................................................................797
Session Facades and Entity EJBs ..................................................................798
Data Exchange and Value Objects ................................................................800
Data Access Without Entity EJBs ................................................................804
Messages and Asynchronous Activation ......................................................811
Composing an Entity ....................................................................................812
Composing a JSP ..........................................................................................813
JSPs and Separation of Concerns ..................................................................817
Client-Side Proxies and Delegates ................................................................820
Locating Services ..........................................................................................821
Any Other Business ......................................................................................822
Refactoring the Case Study ..........................................................................822
Directions for J2EE Patterns ..............................................................................823
Summary ............................................................................................................824
Q & A ..................................................................................................................824
Exercises ............................................................................................................825
D
AY 19 Integrating with External Resources 827
Reviewing External Resources and Legacy Systems ........................................828
Introducing Connector Architecture ..................................................................829
Overview of the Architecture ........................................................................829
Roles and Responsibilities ............................................................................830
Using the Common Client Interface ..................................................................834
Interacting with an EIS ..................................................................................834
Installing a Resource Adapter ......................................................................835
Creating a First CCI Application ..................................................................836
Managing Transactions and Exploring Records ..........................................843
Introducing Other Connectivity Technologies ....................................................848
Introducing CORBA ..........................................................................................849
Introducing Java IDL ..........................................................................................851
Using RMI over IIOP ........................................................................................851
RMI over JRMP Example ............................................................................852
RMI over IIOP Example ..............................................................................857
Introducing JNI ..................................................................................................860
Evaluation of Integration Technologies ..............................................................865
Summary ............................................................................................................865
Q&A ....................................................................................................................866
Exercises ............................................................................................................867
D
AY 20 Using RPC-Style Web Services with J2EE 869
Web Service Overview ......................................................................................870
What Is a Web Service? ................................................................................870
Why Use Web Services? ..............................................................................872
00 0672323842 FM 3/20/02 9:31 AM Page xix
Web Service Technologies and Protocols ....................................................873
Web Service Architecture ..............................................................................873
Web Services for J2EE ......................................................................................875
J2EE Web Service Architecture ....................................................................875
Tools and Technologies ................................................................................876
Integrating Web Services with Existing J2EE Components ........................878
Using an RPC-style SOAP-Based Web Service ................................................879
RPC-Oriented Web Services ........................................................................880
Setting up Axis under Tomcat 4.0 ................................................................881
Service Description Information ..................................................................883
Anatomy of a WSDL Document ..................................................................883
Creating a Java Proxy from WSDL ..............................................................885
Calling the Web Service Through SOAP ......................................................889
A Half-Way House ........................................................................................891
Debugging a SOAP Interaction ....................................................................892
Implementing an RPC-Style SOAP-Based Web Service ..................................894
Wrapping up a Java class as a Web Service ..................................................894
A Client for Your Web Service ......................................................................898
Starting from WSDL ....................................................................................900
Using Axis JWS files ....................................................................................903
Session Context and Web Services ..............................................................905
Wrapping Existing J2EE Functionality as Web Services ............................909
Parameter Types and Type Mapping ..................................................................911
Mapping Between Java and SOAP/WSDL Types ........................................911
Mapping Complex Types with Serializers ....................................................912
Going Further with Complex Type Mapping ................................................919
Summary ............................................................................................................919
Q&A ....................................................................................................................920
Exercises ............................................................................................................921
D
AY 21 Web Service Registries and Message-Style Web Services 923
Registries for Web Services ................................................................................924
What is a Web Service Registry? ..................................................................924
Why Do I Need One? ....................................................................................924
How Do They Work? ....................................................................................925
Types of Registry ..........................................................................................925
ebXML Registry and Repository ..................................................................926
UDDI Overview ............................................................................................928
Accessing Information in a UDDI Registry ......................................................929
Manipulating Service Information using UDDI4J ........................................929
Manipulating Service Information Using the IBM WSTK Client API ........932
Retrieving and Using Service Information ..................................................933
xx Sams Teach Yourself J2EE in 21 Days
00 0672323842 FM 3/20/02 9:31 AM Page xx
剩余1127页未读,继续阅读
2022-09-19 上传
2010-01-12 上传
点击了解资源详情
点击了解资源详情
luoshabai
- 粉丝: 0
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- BottleJS快速入门:演示JavaScript依赖注入优势
- vConsole插件使用教程:输出与复制日志文件
- Node.js v12.7.0版本发布 - 适合高性能Web服务器与网络应用
- Android中实现图片的双指和双击缩放功能
- Anum Pinki英语至乌尔都语开源词典:23000词汇会话
- 三菱电机SLIMDIP智能功率模块在变频洗衣机的应用分析
- 用JavaScript实现的剪刀石头布游戏指南
- Node.js v12.22.1版发布 - 跨平台JavaScript环境新选择
- Infix修复发布:探索新的中缀处理方式
- 罕见疾病酶替代疗法药物非临床研究指导原则报告
- Node.js v10.20.0 版本发布,性能卓越的服务器端JavaScript
- hap-java-client:Java实现的HAP客户端库解析
- Shreyas Satish的GitHub博客自动化静态站点技术解析
- vtomole个人博客网站建设与维护经验分享
- MEAN.JS全栈解决方案:打造MongoDB、Express、AngularJS和Node.js应用
- 东南大学网络空间安全学院复试代码解析
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功