Mukhar / Weaver / Crume | Beginning Java EE 5 | E-Book | www2.sack.de
E-Book

E-Book, Englisch, 672 Seiten

Mukhar / Weaver / Crume Beginning Java EE 5

From Novice to Professional
1. ed
ISBN: 978-1-4302-0084-0
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark

From Novice to Professional

E-Book, Englisch, 672 Seiten

ISBN: 978-1-4302-0084-0
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark



*J2EE 5 is a hot, emerging topic; timely to market *Book covers all other neww J2EE-related technologies, like EJB 3, JSP 2.1, etc. *Previous edition on 1.4 was excellent seller, with consistent low Amazon rank

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.

Mukhar / Weaver / Crume Beginning Java EE 5 jetzt bestellen!

Weitere Infos & Material


1;Contents;5
2;About the Authors;14
3;About the Technical Reviewer;15
4;Acknowledgments;16
5;Introduction;18
6;Chapter 1 Java EE Essentials;25
6.1;What Is Java EE?;26
6.1.1;How Java EE Relates to J2SE;26
6.1.2;Why Java EE?;26
6.2;Multitier Architecture;27
6.2.1;Single-Tier Systems;28
6.2.2;Client/Server (Two-Tier) Architecture;29
6.2.3;N-Tier Architecture;30
6.3;Vendor Independence;33
6.4;Scalability;34
6.5;Features and Concepts in Java EE;34
6.5.1;Java EE Clients and Servers;34
6.5.2;Containers;35
6.5.3;Java Servlets;37
6.5.4;JavaServer Pages (JSPs);38
6.5.5;JavaServer Faces (JSF);40
6.5.6;JDBC;41
6.5.7;EJBs;42
6.5.8;XML Support;45
6.5.9;Web Services;45
6.5.10;Transaction Support;46
6.5.11;Security;47
6.6;Sample Java EE Architectures;47
6.6.1;Application Client with EJB;47
6.6.2;JSP Client with EJB;48
6.6.3;Applet Client with JSP and Database;49
6.6.4;Web Services for Application Integration;49
6.7;Summary;50
7;Chapter 2 Getting Started;53
7.1;Installing JBoss;53
7.1.1;JBoss Installation Problems and Solutions;56
7.2;Testing the JBoss Installation;56
7.2.1;Starting the Server;56
7.2.2;JBoss Server Installation Problem and Solution;58
7.3;Compiling and Deploying a JSP Page;59
7.3.1;Creating the Example Application;59
7.3.2;Learning to Say “Hello”;62
7.3.3;Application Creation Problems and Solutions;65
7.4;Summary;65
8;Chapter 3 JavaServer Pages;67
8.1;Introduction to JSP;67
8.1.1;JSP Development;68
8.1.2;Basic JSP Lifecycle;68
8.2;JSP Elements;69
8.2.1;Directive Elements;70
8.2.2;Scripting Elements;72
8.2.3;Action Elements;74
8.2.4;Comments and Template Data;79
8.3;Creating and Deploying a JSP Web Application;79
8.3.1;Writing the JSP Web Application;79
8.3.2;Deploying the Web Application in Java EE;83
8.3.3;Deploying the Web Application in Tomcat;88
8.3.4;Handling Translation or Compilation Problems;92
8.3.5;Handling JSP Initialization and End of Life;95
8.3.6;JSP Scope;95
8.4;Using Implicit Objects;96
8.4.1;The request Object;97
8.4.2;The response Object;98
8.4.3;The out Object;98
8.4.4;The session Object;98
8.4.5;The config Object;99
8.4.6;The exception Object;100
8.4.7;The application Object;100
8.4.8;Using Standard Actions and Implicit Objects in JSP Pages;100
8.5;Translation and Compilation;109
8.6;Handling Errors and Exceptions;112
8.6.1;Dealing with Exceptions through the page Directive;112
8.6.2;Dealing with Exceptions in the Deployment Descriptor;113
8.6.3;Adding Exception Handling in JSP Pages;113
8.7;Including and Forwarding from JSP Pages;122
8.7.1;include Action;122
8.7.2;forward Action;123
8.7.3;Adding include and forward Actions to JSP Pages;124
8.8;Summary;128
8.9;Exercises;129
9;Chapter 4 Advanced JSP Topics;131
9.1;Expression Language;131
9.1.1;Scriptless JSPs;132
9.1.2;Syntax of EL Statements;134
9.1.3;Errors and Default Values in EL Statements;140
9.1.4;JSP Pages That Use EL;141
9.2;Custom Actions and Tag Handlers;150
9.2.1;How Custom Actions Work;151
9.2.2;Simple Tag Handlers;153
9.2.3;Classic Tag Handlers;164
9.2.4;A Multitude of Custom Actions;179
9.3;JSP Standard Tag Library (JSTL);180
9.3.1;Getting a JSTL Implementation;180
9.3.2;Actions in the JSTL;180
9.3.3;Using the JSTL in a JSP;183
9.4;Summary;189
9.5;Exercises;190
10;Chapter 5 JavaServer Faces;191
10.1;Introduction to JSF;191
10.1.1;The Relationship Between JSF and Other Java EE Technologies;192
10.1.2;Request Processing Lifecycle;193
10.2;Installing JSF;195
10.3;Using JSF with JSP Pages;196
10.3.1;Creating a Simple JSF Application;197
10.3.2;Reviewing the JSF Lifecycle for the Sample Application;208
10.4;Using Managed Beans;208
10.4.1;Configuring Managed Beans;209
10.4.2;Using Value Binding Expressions in JSP Pages;213
10.4.3;Using Method Binding Expressions in JSP Pages;215
10.4.4;Expanding the JSF Sample Application;216
10.5;Controlling Page Navigation;226
10.5.1;Static and Dynamic Navigation;226
10.5.2;Navigation Rules;227
10.5.3;Adding Dynamic Navigation to the Sample JSF Application;228
10.6;Accessing Context Data in Beans;236
10.7;Converting Data;238
10.7.1;Using Standard Converters;239
10.7.2;Using Custom Converters;240
10.8;Validating Input;245
10.8.1;Using Standard Validators;245
10.8.2;Using Custom Validators;246
10.8.3;Bypassing Validation;248
10.9;Using Message Bundles;248
10.10;Summary;251
10.11;Exercises;252
11;Chapter 6 Servlets;253
11.1;HTTP and Server Programs;254
11.1.1;Request Methods;254
11.1.2;How a Server Responds to Requests;258
11.2;The Servlet Model and HttpServlets;258
11.2.1;Basic Servlet Design;259
11.2.2;A Servlet That Responds to POST Requests;262
11.2.3;The request Object;271
11.2.4;The response Object;274
11.2.5;Deployment Descriptors;274
11.2.6;Servlet Lifecycle;278
11.2.7;Event Logging in Servlets;282
11.2.8;Multithreading in Servlets;282
11.3;Exception Handling;290
11.3.1;Problems with Exception Handling;290
11.3.2;Error Pages;293
11.4;Session Management;294
11.4.1;Creating and Using Sessions;295
11.4.2;Using Cookies in Place of Sessions;303
11.5;Filters;304
11.5.1;Implementing the Filter Interface;305
11.5.2;Modifying the Deployment Descriptor to Use a Filter;306
11.6;The MVC Architecture;315
11.6.1;Model 1 vs. MVC;315
11.6.2;The Components of MVC;316
11.6.3;Servlet Chaining;317
11.6.4;Creating an MVC Application;319
11.7;Summary;330
12;Chapter 7 Working with Databases;332
12.1;Connecting to Databases;333
12.1.1;Using Data Sources for Connections;334
12.1.2;Configuring a DataSource and Connection with Java EE;334
12.1.3;Configuring a DataSource and Connection with Tomcat;344
12.1.4;Closing Connections;351
12.1.5;Setting the Login Timeout;353
12.2;Handling Exceptions;353
12.3;Logging with a DataSource;355
12.4;Creating and Using Statement Objects;356
12.4.1;Executing Single Statements;357
12.4.2;Performing Batch Updates;357
12.4.3;Releasing Statements;358
12.4.4;Using Statements to Insert Data into a Database;359
12.5;Using the ResultSet Class;367
12.5.1;Moving Through the ResultSet;367
12.5.2;Reading Data from Resultsets;370
12.5.3;Working with Null Values;374
12.5.4;Using Updatable Resultsets;374
12.5.5;Keeping the ResultSet Open: ResultSet Holdability;376
12.6;Summary;377
12.7;Exercises;377
13;Chapter 8 Advanced Topics in JDBC;379
13.1;Prepared Statements;379
13.1.1;Reasons for Using Prepared Statements;380
13.1.2;Creating a PreparedStatement;384
13.1.3;Using a Prepared Statement;385
13.2;Callable Statements;393
13.2.1;Reasons for Using Stored Procedures;393
13.2.2;Creating a CallableStatement;394
13.2.3;Calling a Stored Procedure;397
13.3;Transactions;398
13.3.1;Ending Transactions;398
13.3.2;Managing Transactions;399
13.3.3;Using Transactions with Stored Procedures;407
13.3.4;Using Distributed Transactions;408
13.4;Locking and Isolation;412
13.4.1;Setting Isolation Levels;413
13.4.2;Using Pessimistic and Optimistic Locking;414
13.5;Summary;424
14;Chapter 9 EJB Fundamentals and Session Beans;426
14.1;Understanding EJBs;426
14.1.1;Why Use EJBs?;427
14.1.2;The EJB Specification;428
14.1.3;The Three Kinds of EJBs;428
14.1.4;Which Type of EJB Should You Use?;431
14.2;The Anatomy of a Session Bean;432
14.3;Developing Session Beans;433
14.3.1;Using a Stateless Session Bean;433
14.3.2;Choosing Between Stateful and Stateless Session Beans;439
14.3.3;Using a Stateful Session Bean;440
14.4;Summary;445
14.5;Exercises;445
15;Chapter 10 EJB Entity Beans;446
15.1;How Entity Beans Work with Session Beans;446
15.2;The Anatomy of an Entity Bean;447
15.2.1;The Entity Bean Class;448
15.2.2;Container-Managed Persistence and the EntityManager Interface;449
15.2.3;Primary Keys;451
15.2.4;Bean-Managed Persistence;451
15.3;Developing CMP Entity Beans;452
15.3.1;Building the CMP Entity Bean Application;452
15.3.2;Compiling the CMP Entity Bean Application;459
15.3.3;Deploying the CMP Entity Bean Application;460
15.3.4;Running the CMP Entity Bean Application;460
15.3.5;Reviewing the CMP Entity Bean;461
15.3.6;Reviewing the Session Bean;461
15.4;Developing BMP Entity Beans;462
15.4.1;Building the BMP Entity Bean Application;463
15.4.2;Deploying the BMP Entity Bean Application;479
15.4.3;Running the BMP Entity Bean Application;480
15.4.4;Reviewing the BMP Entity Bean;480
15.5;The EJB Query Language;485
15.5.1;EJB QL Queries;486
15.5.2;Building and Deploying the EJB QL Queries Application;487
15.5.3;Running the EJB QL Queries Application;490
15.5.4;Reviewing the Session Bean Find Methods;491
15.6;Summary;492
15.7;Exercises;492
16;Chapter 11 EJB Relationships, EJB QL, and JDBC;494
16.1;Entity Bean Relationships;494
16.1.1;One-to-Many and Many-to-One Relationships;495
16.1.2;Many-to-Many Relationships;497
16.1.3;An EJB QL Query to Acquire a Subset of Data;498
16.2;Container-Managed Relationships and EJB QL;499
16.2.1;Building the Application with CMR;501
16.2.2;Compiling the CMR Application;512
16.2.3;Deploying the CMR Application;513
16.2.4;Loading the Database;513
16.2.5;Running the CMR Application;513
16.2.6;Reviewing the CMR Application;514
16.3;JDBC with EJB Entity Beans;517
16.3.1;Implementing JDBC with EJB Applications;518
16.3.2;Using JDBC with the StockList Bean;520
16.4;Summary;524
16.5;Exercises;524
17;Chapter 12 Design Patterns and EJB;525
17.1;Better by Design;525
17.2;Applying Design Patterns;526
17.2.1;Building the Application with Design Patterns;528
17.2.2;Compiling and Running the Application with Design Patterns;547
17.2.3;Reviewing the Application’s Design Patterns;549
17.3;Using JSP and Servlets with EJBs;552
17.3.1;Building the Modified JSP/Servlets Client;552
17.3.2;Reviewing the Modified JSP/Servlets Client;560
17.4;Summary;561
17.5;Exercises;561
18;Chapter 13 Message-Driven Beans;562
18.1;Message-Driven Beans Overview;562
18.1.1;Describing MDBs;564
18.1.2;The MDB Context;564
18.1.3;MDB Transactions;565
18.1.4;Invocation of an Interceptor;566
18.2;Java Message Service API;567
18.3;EJB Timer Service;568
18.4;Using MDBs, JMS, and the EJB Timer Service: Putting It All Together;569
18.4.1;Creating the MessageTimerApp Example;570
18.4.2;Building and Running MessageTimerApp;573
18.4.3;Reviewing MessageTimerApp;574
18.4.4;MessageTimerApp Summary;578
18.5;Summary;578
18.6;Exercises;579
19;Chapter 14 Web Services and JAX-WS;580
19.1;Understanding Web Services;581
19.1.1;Web Services Standards and Models;582
19.1.2;Why Use Web Services?;584
19.1.3;Web Services Protocol Stack;584
19.2;Developing a Web Service in Java;586
19.2.1;Introducing JAX-WS;587
19.2.2;Downloading the CVS Tool;588
19.2.3;Creating the Web Service;589
19.2.4;Building, Testing, and Serving the Web Service;595
19.3;Summary;597
19.4;Exercises;598
20;APPENDIX A Tomcat: Who Needs Java EE 5?;599
20.1;Obtaining and Installing Tomcat;599
20.2;Running Tomcat;602
21;APPENDIX B SQL and EJB QL;603
21.1;Introduction to SQL;603
21.2;Introduction to EJB QL;618
22;APPENDIX C Java EE Glossary;624
23;Index;631



Ihre Fragen, Wünsche oder Anmerkungen
Vorname*
Nachname*
Ihre E-Mail-Adresse*
Kundennr.
Ihre Nachricht*
Lediglich mit * gekennzeichnete Felder sind Pflichtfelder.
Wenn Sie die im Kontaktformular eingegebenen Daten durch Klick auf den nachfolgenden Button übersenden, erklären Sie sich damit einverstanden, dass wir Ihr Angaben für die Beantwortung Ihrer Anfrage verwenden. Selbstverständlich werden Ihre Daten vertraulich behandelt und nicht an Dritte weitergegeben. Sie können der Verwendung Ihrer Daten jederzeit widersprechen. Das Datenhandling bei Sack Fachmedien erklären wir Ihnen in unserer Datenschutzerklärung.