10.12.2012 Views

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Contents<br />

30 SecuringWeb Applications ..............................................................................................................835<br />

Overview of Web Application Security .......................................................................................... 836<br />

Working with Security Roles ........................................................................................................... 837<br />

Declaring Security Roles ........................................................................................................... 837<br />

Mapping Security Roles to Application Server Groups ......................................................... 840<br />

Checking Caller Identity Programmatically .................................................................................. 841<br />

Declaring and Linking Role References .................................................................................. 842<br />

Defining Security Requirements for Web Applications ............................................................... 844<br />

Declaring Security Requirements Using Annotations .......................................................... 845<br />

Declaring Security Requirements in a Deployment Descriptor ........................................... 847<br />

Specifying a Secure Connection ............................................................................................... 853<br />

Specifying an Authentication Mechanism .............................................................................. 854<br />

Examples: Securing Web Applications ........................................................................................... 862<br />

Example: Using Form-Based Authentication with a JSP Page ............................................. 863<br />

Example: Basic Authentication with a Servlet ........................................................................ 873<br />

Example: Basic Authentication with JAX-WS ........................................................................ 881<br />

31 <strong>The</strong> <strong>Java</strong> Message Service API .........................................................................................................889<br />

Overview of the JMS API .................................................................................................................. 889<br />

What Is Messaging? ................................................................................................................... 889<br />

What Is the JMS API? ................................................................................................................ 890<br />

When Can You Use the JMS API? ........................................................................................... 890<br />

How Does the JMS API Work with the <strong>Java</strong> <strong>EE</strong> Platform? ................................................... 892<br />

Basic JMS API Concepts ................................................................................................................... 892<br />

JMS API Architecture ................................................................................................................ 893<br />

Messaging Domains ................................................................................................................... 894<br />

Message Consumption .............................................................................................................. 896<br />

<strong>The</strong> JMS API Programming Model ................................................................................................. 896<br />

JMS Administered Objects ....................................................................................................... 897<br />

JMS Connections ....................................................................................................................... 899<br />

JMS Sessions ............................................................................................................................... 900<br />

JMS Message Producers ............................................................................................................ 900<br />

JMS Message Consumers .......................................................................................................... 901<br />

JMS Messages ............................................................................................................................. 903<br />

JMS Queue Browsers ................................................................................................................. 905<br />

23

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!