... 21
Java EE6 APIs 22
Enterprise JavaBeans Technology 25
Java Servlet Technology 26
JavaServer Faces Technology 26
JavaServer Pages Technology 27
JavaServer Pages Standard Tag Library 27
Java ... 17
■
“Development Roles” on page 19
■
JavaEE6 APIs” on page 22
■
JavaEE6 APIs in the Java Platform, Standard Edition 6. 0” on page 31
■
“GlassFish Server Tools” on page 34
Java EE6 Platform Highlights
The ... deployment process installs JavaEE application components in the Java EE
containers as illustrated in Figure 1–5.
■
Java EE server: The runtime portion of a JavaEE product. A JavaEE server
provides...
... tuning, and extending Enterprise
Applications using a JavaEE6 implementation.
The book starts with the essential changes in JavaEE6. Then we will dive into the
implementation of some of ... testing-related recipes for testing various JavaEE technologies, including JPA, EJB,
JSF, and web services.
For More Information:
www.packtpub.com /java- ee6 -securing-tuning-extending-enterprise-
applications-cookbook/book ... More Information:
www.packtpub.com /java- ee6 -securing-tuning-extending-enterprise-
applications-cookbook/book
Enterprise Testing Strategies
134
Step 6:
We need to verify the Mock OrderDao object...
... of the JavaEE6 APIs in the web container:
The green boxes denote the new APIs added to JavaEE6.
3. Next, we examine the availability of the JavaEE6 APIs in the EJB container:
The green boxes ... 6.
Java EE was rst released in 1999 and has had new specications added to each release.
Until JavaEE 6, no specications were removed or marked for removal. Over the years, there
have been ... marked will actually be removed from Java
EE 6, but could be removed from JavaEE 7.
1. To begin with, let's look at the relationships among the JavaEE containers:
Preface
4
Any command-line...
...
■Preface xxi
■Chapter 1: JavaEE6 at a Glance 1
Understanding JavaEE 1
A Bit of History 2
Standards 4
Architecture 4
Java EE6 Specifications 10
What’s New in JavaEE 6? 12
Lighter 13
Easier ... examples
BOOKs fOr PrOfEssiONALs BY PrOfEssiONALs
®
Beginning Java
TM
EE6 Platform with
GlassFish
TM
3
Dear Reader,
This book tells you all you need to know about JavaEE 6, the latest version
of the Java Enterprise platform. JavaEE6 is richer ... 158
Concurrency 161
Versioning 163
Optimistic Locking 164
Pessimistic Locking 166
Summary 166
■Chapter 5: Callbacks and Listeners 167
Entity Life Cycle 167
Callbacks 169
Listeners 172...
... 21
Java EE6 APIs 22
Enterprise JavaBeans Technology 25
Java Servlet Technology 26
JavaServer Faces Technology 26
JavaServer Pages Technology 27
JavaServer Pages Standard Tag Library 27
Java ... between Java EE
components and “standard” Java classes is that JavaEE components are assembled
into a JavaEE application, are veried to be well formed and in compliance with the
Java EE specication, ... (see Java Servlet Technology” on page 26 for details)
■
New features for JavaServer Faces components (see “JavaServer Faces Technology”
on page 26 for details)
Java EE Application Model
The Java...
... cart Example 66 2
Undeploying the cart Example 66 5
A Web Service Example: helloservice 66 5
The Web Service Endpoint Implementation Class 66 6
Stateless Session Bean Implementation Class 66 6
Building, ... 66 7
Using the Timer Service 66 9
The Timeout Method 66 9
Creating Timers 66 9
Canceling and Saving Timers 67 0
Getting Timer Information 67 0
Transactions and Timers 67 0
The timersession Example 67 1
Building, ... Implementation 566
Reporting CDATA Events 566
Streaming XML Parser Factories Implementation 566
Example Code 567
Example Code Organization 567
Example XML Document 568
Cursor Example 568
Cursor-to-Event...
... nào.
LẬP TRÌNH JAVA
Phạm Quang Dũng
BM KHMT - Khoa CNTT - Trường ĐHNN I
Chương 6: Đối tượng và lớp
Object & Class
Các lớp Java API và Core Java
✦
java. lang
Chứa các lớp Java lõi (core Java class), ... dụng.
✦
java. io
Chứa các lớp cho các luồng vào-ra và các file.
✦
java. util
Chứa nhiều tiện ích, ví dụ date.
✦
java. net
Chứa các lớp hỗ trợ giao tiếp mạng.
Các lớp Java API và Core Java (tiếp)
Constructor ... Circle(double r){
this.rd = r;
}
}
Ví dụ 6. 2:
Sử dụng các lớp từ thư viện Java
✦
Mục tiêu: Minh họa việc sử dụng các lớp
từ thư viện Java. Sử dụng lớp JFrame
trong gói javax.swing để tạo 2 frame; sử...
... xmlns="http:/ /java. sun.com/xml/ns/javaee" version="2.5"
xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=" http:/ /java. sun.com/xml/ns/
javaee http:/ /java. sun.com/xml/ns/javaee/web-app_2_5.xsd">"
... should see
a page like this:
Chapter 2
[ 35 ]
The code for the servlet is as follows:
package net.ensode.glassfishbook.simpleapp;
import java. io.IOException;
import java. io.PrintWriter;
import javax.servlet.http.HttpServlet;
import ... called JavaDB. This RDBMS
is based on Apache Derby. To limit the downloads and conguration
needed to follow this book's code, all examples needing an RDBMS will
use the embedded JavaDB...
... test
Ctrl-F6/Alt-F6 Run JUnit test on file/project
F6/Shift-F6 Run main project/file
Debugging
Ctrl-F5 Start debugging main project
Ctrl-Shift-F5 Start debugging current file
Ctrl-Shift-F6 Start debugging ... cheatsheets, feature articles, source code and more.
“DZone is a developer’s dream,” says PC Magazine.
DZone, Inc.
1251 NW Maynard
Cary, NC 27513
888 .67 8.0399
919 .67 8.0300
Refcardz Feedback ... known for his
popular blog at http://blogs.sun.com/geertjan,
as well as for his role as a Zone Leader at Javalobby.
Patrick Keegan has been writing about the
NetBeans IDE for over 9 years....