万本电子书0元读

万本电子书0元读

顶部广告

Java EE 6 with GlassFish 3 Application Server电子书

售       价:¥

22人正在读 | 0人评论 9.8

作       者:David R. Heffelfinger

出  版  社:Packt Publishing

出版时间:2010-07-26

字       数:523.6万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:此类商品不支持退换货,不支持下载打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
This book is a practical guide with a very user-friendly approach. It aims to speed up the reader in Java EE 6 development. All major Java EE 6 APIs and the details of the GlassFish 3 server are covered followed by examples of its use. If you are a Java developer and wish to become proficient with Java EE 6, then this book is for you. You are expected to have some experience with Java and to have developed and deployed applications in the past, but need no previous knowledge of Java EE or J2EE. You will also learn how to use GlassFish 3 to develop and deploy applications.
目录展开

Java EE 6 with GlassFish 3 Application Server

Table of Contents

Java EE 6 with GlassFish 3 Application Server

Credits

About the Author

About the Reviewers

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Errata

Piracy

Questions

1. Getting Started with GlassFish

Overview of Java EE and GlassFish

What's new in Java EE 6

JavaServer Faces (JSF) 2.0

Enterprise JavaBeans (EJB) 3.1

Java Persistence API (JPA) 2.0

Contexts and Dependency Injection for Java (Web Beans 1.0)

Java Servlet API 3.0

Java API for RESTful web services (JAX-RS) 1.1

Java API for XML-based web services (JAX-WS) 2.2

Java Architecture for XML Binding (JAXB) 2.2

What's new in GlassFish v3

GlassFish advantages

Obtaining GlassFish

Installing GlassFish

GlassFish dependencies

Performing the installation

Verifying the installation

Deploying our first Java EE application

Deploying an application through the Web Console

Undeploying an application through the Web Console

Deploying an application through the command line

The autodeploy directory

The asadmin command line utility

GlassFish domains

Creating domains

Deleting domains

Stopping a domain

Setting up database connectivity

Setting up connection pools

Setting up data sources

Final notes

Summary

2. Servlet Development and Deployment

What is a servlet?

Writing our first servlet

Compiling the servlet

Configuring the servlet

Packaging the web application

Deploying the web application

Testing the web application

Processing HTML forms

Request forwarding and response redirection

Request forwarding

Response redirection

Persisting application data across requests

New features introduced in Servlet 3.0

Optional web.xml deployment descriptor

@WebServlet annotation

Passing initialization parameters to a servlet via annotations

@WebFilter annotation

@WebListener annotation

Pluggability

Configuring web applications programmatically

Asynchronous processing

Summary

3. JavaServer Pages

Introduction to JavaServer Pages

Developing our first JSP

JSP implicit objects

JSPs and JavaBeans

Reusing JSP content

JSP custom tags

Extending SimpleTagSupport

Using tag files to create custom JSP tags

Unified Expression Language

JSP XML syntax

Summary

4. JSP Standard Tag Library

Core JSTL tag library

Formatting JSTL tag library

SQL JSTL tag library

XML JSTL tag library

JSTL functions

Summary

5. Database Connectivity

The CustomerDB database

JDBC

Retrieving data from a database

Modifying database data

The Java Persistence API

Entity relationships

One-to-one relationships

One-to-many relationships

Many-to-many relationships

Composite primary keys

Java Persistence Query Language

New features introduced in JPA 2.0

Criteria API

Bean Validation support

Summary

6. JavaServer Faces

Introduction to JSF 2.0

Facelets

Optional faces-config.xml

Standard resource locations

Developing our first JSF 2.0 application

Facelets

Project stages

Validation

Grouping components

Form submission

Managed beans

Managed bean scopes

Navigation

Custom data validation

Creating custom validators

Validator methods

Customizing JSF's default messages

Customizing message styles

Customizing message text

Integrating JSF and JPA

Ajax enabling JSF 2.0 applications

JSF standard components

JSF core components

The <f:actionListener> tag

The <f:ajax> tag

The <f:attribute> tag

The <f:convertDateTime> tag

The <f:convertNumber> tag

The <f:converter> tag

The <f:event> tag

The <f:facet> tag

The <f:loadBundle> tag

The <f:metadata> tag

The <f:param> tag

The <f:phaseListener> tag

The <f:selectItem> tag

The <f:selectItems> tag

The <f:setPropertyActionListener> tag

The <f:subview> tag

The <f:validateBean> tag

The <f:validateDoubleRange> tag

The <f:validateLength> tag

The <f:validateLongRange> tag

The <f:validateRegex> tag

The <f:validateRequired> tag

The <f:validator> tag

The <f:valueChangeListener> tag

The <f:verbatim> tag

The <f:view> tag

The <f:viewParam> tag

JSF HTML components

The <h:body> tag

The <h:button> tag

The <h:column> tag

The <h:commandButton> tag

The <h:commandLink> tag

The <h:dataTable> tag

The <h:form> tag

The <h:graphicImage> tag

The <h:head> tag

The <h:inputHidden> tag

The <h:inputSecret> tag

The <h:inputText> tag

The <h:inputTextarea> tag

The <h:link> tag

The <h:message> tag

The <h:messages> tag

The <h:outputFormat> tag

The <h:outputLabel> tag

The <h:outputLink> tag

The <h:outputScript> tag

The <h:outputStylesheet> tag

The <h:outputText> tag

The <h:panelGrid> tag

The <h:panelGroup> tag

The <h:selectBooleanCheckbox> tag

The <h:selectManyCheckbox> tag

The <h:selectManyListbox> tag

The <h:selectManyMenu> tag

The <h:selectOneListbox> tag

The <h:selectOneMenu> tag

The <h:selectOneRadio> tag

Additional JSF component libraries

Summary

7. Java Messaging Service

Setting up GlassFish for JMS

Setting up a JMS connection factory

Setting up a JMS message queue

Setting up a JMS message topic

Message queues

Sending messages to a message queue

Retrieving messages from a message queue

Asynchronously receiving messages from a message queue

Browsing message queues

Message topics

Sending messages to a message topic

Receiving messages from a message topic

Creating durable subscribers

Summary

8. Security

Security realms

Predefined security realms

The admin-realm

The file realm

File realm basic authentication

The certificate realm

Creating self-signed certificates

Configuring applications to use the certificate realm

Defining additional realms

Defining additional file realms

Defining additional certificate realms

Defining an LDAP realm

Defining a Solaris realm

Defining a JDBC realm

Defining custom realms

Summary

9. Enterprise JavaBeans

Session beans

Simple session bean

A more realistic example

Invoking session beans from web applications

Singleton session beans

Asynchronous method calls

Message-driven beans

Transactions in Enterprise JavaBeans

Container-managed transactions

Bean-managed transactions

Enterprise JavaBeans life cycle

Stateful session bean life cycle

Stateless session bean life cycle

Message-driven bean life cycle

EJB timer service

Calendar-based EJB timer expressions

EJB security

Client authentication

Summary

10. Contexts and Dependency Injection

Named beans

Dependency injection

Qualifiers

Named bean scopes

Summary

11. Web Services with JAX-WS

Developing web services with JAX-WS

Developing a web service client

Sending attachments to web services

Exposing EJBs as web services

EJB web service clients

Securing web services

Securing EJB web services

Summary

12. RESTful Web Services with Jersey and JAX-RS

Introduction to RESTful web services and JAX-RS

Developing a simple RESTful web service

Configuring the REST resources path for our application

Configuring via web.xml

Configuring via the @ApplicationPath annotation

Testing our web service

Converting data between Java and XML with JAXB

Developing a RESTful web service client

Query and path parameters

Query parameters

Sending query parameters via the Jersey client API

Path parameters

Sending path parameters via the Jersey client API

Summary

A. Sending E-mails from Java EE Applications

Configuring GlassFish

Implementing e-mail delivery functionality

B. IDE Integration

NetBeans

Eclipse

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部