Atjaunināt sīkdatņu piekrišanu

Beginning Java EE 5: From Novice to Professional 1st ed. [Mīkstie vāki]

3.33/5 (18 ratings by Goodreads)
  • Formāts: Paperback / softback, 672 pages, height x width: 235x178 mm, weight: 1179 g, 672 p., 1 Paperback / softback
  • Izdošanas datums: 02-Nov-2005
  • Izdevniecība: APress
  • ISBN-10: 1590594703
  • ISBN-13: 9781590594704
Citas grāmatas par šo tēmu:
  • Mīkstie vāki
  • Cena: 32,98 €*
  • * ši ir gala cena, t.i., netiek piemērotas nekādas papildus atlaides
  • Standarta cena: 38,81 €
  • Ietaupiet 15%
  • Grāmatu piegādes laiks ir 3-4 nedēļas, ja grāmata ir uz vietas izdevniecības noliktavā. Ja izdevējam nepieciešams publicēt jaunu tirāžu, grāmatas piegāde var aizkavēties.
  • Daudzums:
  • Ielikt grozā
  • Piegādes laiks - 4-6 nedēļas
  • Pievienot vēlmju sarakstam
  • Formāts: Paperback / softback, 672 pages, height x width: 235x178 mm, weight: 1179 g, 672 p., 1 Paperback / softback
  • Izdošanas datums: 02-Nov-2005
  • Izdevniecība: APress
  • ISBN-10: 1590594703
  • ISBN-13: 9781590594704
Citas grāmatas par šo tēmu:
Sun's new lightweight Java Enterprise Edition (EE) 5 is an extremely powerful platform for developing enterprise-level Java-based applications, primarily for the server. This book shows you how to harness that power, examining how the pieces of the new Java EE 5 platform fit together, including the redesigned annotations-driven EJB 3 spec as well as JavaServer Faces (JSF), integrated into the platform for the first time.



Hands-on tutorials are also included, along with clear explanations and working code examples. You will grow to take the next stepfrom writing client-side desktop applications to writing enterprise applications. You will also learn how to use the individual APIs and tools in the Java EE 5 platform, and how to merge these to create your own enterprise applications.
About the Authors xv
About the Technical Reviewer xvii
Acknowledgments xix
Introduction xxi
CHAPTER 1 Java EE Essentials 1(28)
What Is Java EE?
2(1)
Flow Java EE Relates to J2SE
2(1)
Why Java EE?
2(1)
Multitier Architecture
3(6)
Single-Tier Systems
4(1)
Client/Server (Two-Tier) Architecture
5(1)
N-Tier Architecture
6(3)
Vendor Independence
9(1)
Scalability
10(1)
Features and Concepts in Java EE
10(13)
Java EE Clients and Servers
10(1)
Containers
11(2)
Java Servlets
13(1)
JavaServer Pages (JSPs)
14(2)
JavaServer Faces (JSF)
16(1)
JDBC
17(1)
EJBs
18(3)
XML Support
21(1)
Web Services
21(1)
Transaction Support
22(1)
Security
23(1)
Sample Java EE Architectures
23(3)
Application Client with EJB
23(1)
JSP Client with EJB
24(1)
Applet Client with JSP and Database
25(1)
Web Services for Application Integration
25(1)
Summary
26(3)
CHAPTER 2 Getting Started 29(14)
Installing JBoss
29(3)
JBoss Installation Problems and Solutions
32(1)
Testing the JBoss Installation
32(3)
Starting the Server
32(2)
JBoss Server Installation Problem and Solution
34(1)
Compiling and Deploying a JSP Page
35(6)
Creating the Example Application
35(3)
Learning to Say "Hello"
38(3)
Application Creation Problems and Solutions
41(1)
Summary
41(2)
CHAPTER 3 JavaServer Pages 43(64)
Introduction to JSP
43(2)
JSP Development
44(1)
Basic JSP Lifecycle
44(1)
JSP Elements
45(10)
Directive Elements
46(2)
Scripting Elements
48(2)
Action Elements
50(5)
Comments and Template Data
55(1)
Creating and Deploying a JSP Web Application
55(17)
Writing the JSP Web Application
55(4)
Deploying the Web Application in Java EE
59(5)
Deploying the Web Application in Tomcat
64(4)
Handling Translation or Compilation Problems
68(3)
Handling JSP Initialization and End of Life
71(1)
JSP Scope
71(1)
Using Implicit Objects
72(13)
The request Object
73(1)
The response Object
74(1)
The out Object
74(1)
The session Object
74(1)
The config Object
75(1)
The exception Object
76(1)
The application Object
76(1)
Using Standard Actions and Implicit Objects in JSP Pages
76(9)
Translation and Compilation
85(3)
Handling Errors and Exceptions
88(10)
Dealing with Exceptions through the page Directive
88(1)
Dealing with Exceptions in the Deployment Descriptor
89(1)
Adding Exception Handling in JSP Pages
89(9)
Including and Forwarding from JSP Pages
98(6)
include Action
98(1)
forward Action
99(1)
Adding include and forward Actions to JSP Pages
100(4)
Summary
104(1)
Exercises
105(2)
CHAPTER 4 Advanced JSP Topics 107(60)
Expression Language
107(19)
Scriptless JSP5
108(2)
Syntax of EL Statements
110(6)
Errors and Default Values in EL Statements
116(1)
JSP Pages That Use EL
117(9)
Custom Actions and Tag Handlers
126(30)
How Custom Actions Work
127(2)
Simple Tag Handlers
129(11)
Classic Tag Handlers
140(15)
A Multitude of Custom Actions
155(1)
JSP Standard Tag Library (JSTL)
156(9)
Getting a JSTL Implementation
156(1)
Actions in the JSTL
156(3)
Using the JSTL in a JSP
159(6)
Summary
165(1)
Exercises
166(1)
CHAPTER 5 JavaServer Faces 167(62)
Introduction to JSF
167(4)
The Relationship Between JSF and Other Java EE Technologies
168(1)
Request Processing Lifecycle
169(2)
Installing JSF
171(1)
Using JSF with JSP Pages
172(12)
Creating a Simple JSF Application
173(11)
Reviewing the JSF Lifecycle for the Sample Application
184(1)
Using Managed Beans
184(18)
Configuring Managed Beans
185(4)
Using Value Binding Expressions in JSP Pages
189(2)
Using Method Binding Expressions in JSP Pages
191(1)
Expanding the JSF Sample Application
192(10)
Controlling Page Navigation
202(10)
Static and Dynamic Navigation
202(1)
Navigation Rules
203(1)
Adding Dynamic Navigation to the Sample JSF Application
204(8)
Accessing Context Data in Beans
212(2)
Converting Data
214(7)
Using Standard Converters
215(1)
Using Custom Converters
216(5)
Validating Input
221(3)
Using Standard Validators
221(1)
Using Custom Validators
222(2)
Bypassing Validation
224(1)
Using Message Bundles
224(3)
Summary
227(1)
Exercises
228(1)
CHAPTER 6 Servlets 229(80)
HTTP and Server Programs
230(4)
Request Methods
230(4)
How a Server Responds to Requests
234(1)
The Servlet Model and HttpServlets
234(32)
Basic Servlet Design
235(3)
A Servlet That Responds to POST Requests
238(9)
The request Object
247(3)
The response Object
250(1)
Deployment Descriptors
250(4)
Servlet Lifecycle
254(4)
Event Logging in Servlets
258(1)
Multithreading in Servlets
258(8)
Exception Handling
266(4)
Problems with Exception Handling
266(3)
Error Pages
269(1)
Session Management
270(10)
Creating and Using Sessions
271(8)
Using Cookies in Place of Sessions
279(1)
Filters
280(11)
Implementing the Filter Interface
281(1)
Modifying the Deployment Descriptor to Use a Filter
282(9)
The MVC Architecture
291(15)
Model 1 vs. MVC
291(1)
The Components of MVC
292(1)
Servlet Chaining
293(2)
Creating an MVC Application
295(11)
Summary
306(1)
Exercises
307(2)
CHAPTER 7 Working with Databases 309(48)
Connecting to Databases
310(20)
Using Data Sources for Connections
311(1)
Configuring a DataSource and Connection with Java EE
311(10)
Configuring a DataSource and Connection with Tomcat
321(7)
Closing Connections
328(2)
Setting the Login Timeout
330(1)
Handling Exceptions
330(2)
Logging with a DataSource
332(1)
Creating and Using Statement Objects
333(11)
Executing Single Statements
334(1)
Performing Batch Updates
334(1)
Releasing Statements
335(1)
Using Statements to Insert Data into a Database
336(8)
Using the ResultSet Class
344(10)
Moving Through the ResultSet
344(3)
Reading Data from Resultsets
347(4)
Working with Null Values
351(1)
Using Updatable Resultsets
351(2)
Keeping the ResultSet Open: ResultSet Holdability
353(1)
Summary
354(1)
Exercises
354(3)
CHAPTER 8 Advanced Topics in JDBC 357(48)
Prepared Statements
357(14)
Reasons for Using Prepared Statements
358(4)
Creating a PreparedStatement
362(1)
Using a Prepared Statement
363(8)
Callable Statements
371(5)
Reasons for Using Stored Procedures
371(1)
Creating a CallableStatement
372(3)
Calling a Stored Procedure
375(1)
Transactions
376(14)
Ending Transactions
376(1)
Managing Transactions
377(8)
Using Transactions with Stored Procedures
385(1)
Using Distributed Transactions
386(4)
Locking and Isolation
390(12)
Setting Isolation Levels
391(1)
Using Pessimistic and Optimistic Locking
392(10)
Summary
402(1)
Exercises
403(2)
CHAPTER 9 EJB Fundamentals and Session Beans 405(20)
Understanding EJBs
405(6)
Why Use EJBs?
406(1)
The EJB Specification
407(1)
The Three Kinds of EJBs
407(3)
Which Type of EJB Should You Use?
410(1)
The Anatomy of a Session Bean
411(1)
Developing Session Beans
412(12)
Using a Stateless Session Bean
412(6)
Choosing Between Stateful and Stateless Session Beans
418(1)
Using a Stateful Session Bean
419(5)
Summary
424(1)
Exercises
424(1)
CHAPTER 10 EJB Entity Beans 425(48)
How Entity Beans Work with Session Beans
425(1)
The Anatomy of an Entity Bean
426(5)
The Entity Bean Class
427(1)
Container-Managed Persistence and the EntityManager Interface
428(2)
Primary Keys
430(1)
Bean-Managed Persistence
430(1)
Developing CMP Entity Beans
431(10)
Building the CMP Entity Bean Application
431(7)
Compiling the CMP Entity Bean Application
438(1)
Deploying the CMP Entity Bean Application
439(1)
Running the CMP Entity Bean Application
439(1)
Reviewing the CMP Entity Bean
440(1)
Reviewing the Session Bean
440(1)
Developing BMP Entity Beans
441(23)
Building the BMP Entity Bean Application
442(16)
Deploying the BMP Entity Bean Application
458(1)
Running the BMP Entity Bean Application
459(1)
Reviewing the BMP Entity Bean
459(5)
The EJB Query Language
464(7)
EJB QL Queries
465(1)
Building and Deploying the EJB QL Queries Application
466(3)
Running the EJB QL Queries Application
469(1)
Reviewing the Session Bean Find Methods
470(1)
Summary
471(1)
Exercises
471(2)
CHAPTER 11 EJB Relationships, EJB QL, and JDBC 473(32)
Entity Bean Relationships
473(5)
One-to-Many and Many-to-One Relationships
474(2)
Many-to-Many Relationships
476(1)
An EJB QL Query to Acquire a Subset of Data
477(1)
Container-Managed Relationships and EJB QL
478(18)
Building the Application with CMR
480(11)
Compiling the CMR Application
491(1)
Deploying the CMR Application
492(1)
Loading the Database
492(1)
Running the CMR Application
492(1)
Reviewing the CMR Application
493(3)
JDBC with EJB Entity Beans
496(7)
Implementing JDBC with EJB Applications
497(2)
Using JDBC with the StockList Bean
499(4)
Summary
503(1)
Exercises
503(2)
CHAPTER 12 Design Patterns and EJB 505(38)
Better by Design
505(1)
Applying Design Patterns
506(26)
Building the Application with Design Patterns
508(19)
Compiling and Running the Application with Design Patterns
527(2)
Reviewing the Application's Design Patterns
529(3)
Using JSP and Servlets with EJBs
532(9)
Building the Modified JSP/Servlets Client
532(8)
Reviewing the Modified JSP/Servlets Client
540(1)
Summary
541(1)
Exercises
541(2)
CHAPTER 13 Message-Driven Beans 543(18)
Message-Driven Beans Overview
543(5)
Describing MDBs
545(1)
The MDB Context
545(1)
MDB Transactions
546(1)
Invocation of an Interceptor
547(1)
Java Message Service API
548(1)
EJB Timer Service
549(1)
Using MDBs, JMS, and the EJB Timer Service: Putting It All Together
550(9)
Creating the MessageTimerApp Example
551(3)
Building and Running MessageTimerApp
554(1)
Reviewing MessageTimerApp
555(4)
MessageTimerApp Summary
559(1)
Summary
559(1)
Exercises
560(1)
CHAPTER 14 Web Services and JAX-WS 561(20)
Understanding Web Services
562(5)
Web Services Standards and Models
563(2)
Why Use Web Services?
565(1)
Web Services Protocol Stack
565(2)
Developing a Web Service in Java
567(11)
Introducing JAX-WS
568(1)
Downloading the CVS Tool
569(1)
Creating the Web Service
570(6)
Building, Testing, and Serving the Web Service
576(2)
Summary
578(1)
Exercises
579(2)
APPENDIX A Tomcat: Who Needs Java EE 5? 581(4)
Obtaining and Installing Tomcat
581(3)
Binary Installation to Windows
582(1)
Binary Installation to Linux/Unix
583(1)
Running Tomcat
584(1)
APPENDIX B SQL and EJB QL 585(22)
Introduction to SQL
585(15)
SQL Objects
585(2)
SQL Data Types
587(1)
Creating Tables
588(3)
Selecting Data from Tables
591(6)
Modifying Table Data
597(2)
Constructing Joins
599(1)
Introduction to EJB QL
600(7)
Entity Bean References
601(1)
The javax.ejb.Query Object
601(1)
Building EJB Queries
602(3)
Using Relationships
605(2)
APPENDIX C Java EE Glossary 607(8)
INDEX 615


Kevin Mukhar is a software developer in Colorado Springs, Colorado. For the past seven years, he has worked on various software systems using different Java Enterprise technologies. He has coauthored several books, including Beginning Java Databases and The Ultimate Palm Robot. In addition to developing software during the day, he is working on a master's degree in computer science. Learn more about him on his web page.