没有合适的资源?快使用搜索试试~ 我知道了~
首页21天掌握J2EE核心技术:Java教程
21天掌握J2EE核心技术:Java教程
需积分: 9 1 下载量 157 浏览量
更新于2024-07-29
收藏 11.94MB PDF 举报
《Sams Teach Yourself J2EE in 21 Days》是一本专注于Java技术的教程书籍,由Martin Bond、Dan Haywood、Debbie Law、Andy Longshaw和Peter Roxburgh合作编写。本书面向那些希望快速学习和掌握Java企业版(Java Enterprise Edition, J2EE)的读者,通过21天的学习计划,帮助读者系统地理解和应用J2EE的核心概念和技术。
J2EE是Sun Microsystems(现已被Oracle收购)在20世纪90年代末推出的一套用于构建企业级Web应用的Java架构。它集合了Java的平台无关性、安全性和可扩展性,提供了一套完整的解决方案,包括应用服务器、中间件和组件技术,如Servlet、JSP、EJB(Enterprise JavaBeans)和JMS(Java Message Service)等。
该书的标题强调了“Teach Yourself”,表明它采用了一种实践导向的教学方法,适合自学者进行自学。书中内容可能包括J2EE的基础概念,如Java Servlets如何处理HTTP请求,JSP页面如何动态生成HTML,以及EJB的设计模式和部署流程。此外,还会介绍企业级应用程序的模块化、数据持久化、安全性、性能优化等关键知识点。
版权信息显示,本书于2002年首次出版,所有内容受版权保护,未经Sams Publishing书面许可,禁止任何形式的复制、存储或传输。作者和出版商不承担因使用书中的信息导致的错误或遗漏的责任,并且不保证本书内容的绝对正确性,但已尽力确保其准确性。
国际标准书号(ISBN)和美国国会图书馆分类卡号(Library of Congress Catalog Card Number)也提供了本书的唯一标识。该书在美国印刷,第一版发行于2002年4月。书中还提到了商标使用规范,所有在书中提到的知名商标和服务标记都是被恰当标注的,这表明作者尊重知识产权。
《Sams Teach Yourself J2EE in 21 Days》是一本实用的入门指南,对于想要步入企业级Java开发领域的读者来说,是快速掌握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页未读,继续阅读
185 浏览量
126 浏览量
105 浏览量
2015-04-01 上传
112 浏览量
2013-03-11 上传
Jackblog2
- 粉丝: 0
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 快速集成DataKit实现Web后端功能
- Python自动化测试实践与探索
- Fractran解释器实现与代码解读
- 地图数据可视化大屏幕模板设计
- 易语言实现桌面指定区域图像捕获技巧
- C++实现的高效HTTP服务器程序解析
- 实现8个温度检测报警及按键设置功能的51单片机仿真
- Puppet模块实现Corosync配置管理与高可用集群部署
- 服务对象使用示例:虚拟应用程序演示
- JDBC技术在Git环境下的应用示例分析
- SAP GUI 750补丁包11发布,用于增强企业管理和业务操作
- 掌握Java Spring课程深度解析与实践指南
- C#开发中调用大华摄像头的SDK资源与接口
- GCN3 c7200路由器IOS镜像包下载资源
- iOS-Terminal应用:兼容iOS 5至iOS 8的终端体验
- 帕拉提-凯斯利网站:专为网页测试而创建
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功