Contents

About the Author

About the Technical Reviewer

Acknowledgments

Introduction

image Chapter 1: Tasks and Scheduling

Multithreading in Java

Java SE

Java EE

Task Scheduling

Multithreading with Spring

org.springframework.core.task.TaskExecutor

org.springframework.scheduling.Trigger

Task Scheduler

Configuring Asynchronous Tasks

Configuring Scheduled Tasks

Summary

image Chapter 2: Remoting

Remote Method Invocation

Spring RMI Support

Spring RMI Summary

Spring HttpInvoker

HttpInvoker Served via HttpRequestHandlerServlet

HttpInvoker Served via DispatcherServlet

HttpInvoker Served via Simple Java HTTP Server

HttpInvoker Service Accessed from Client

Summary

image Chapter 3: Web Services

Introduction to Web Services

Java Web Services

Spring Web Services

Contract Creation

Endpoint Mapping

JAXB 2 Endpoint-Mapping Example

Spring Context Configuration

Transports

HTTP/HTTPS

JMS

E-mail

XMPP

Servlet Transports

Web Service Client

Intercepting Messages

Server-Side Interception

Client-Side Interception

Error Handling

Server-Side Error Handling

Client-Side Error Handling

Out-of-Container Testing

Server-Side Testing Support

Client-Side Testing Support

Summary

image Chapter 4: RESTful Web Services

REST Principles

Client/Server Separation

CRUD Operations

Uniform Interface

Statelessness

Layered Architecture

HATEOAS

Cacheability

Flexibility

HTTP Overview

HTTP Methods Used by REST

JAX-RS

JAX-RS Implementations

JAX-RS API

Common Classes Used in Examples

JAX-RS Endpoint

Spring MVC

Configuring Spring MVC for REST

Spring MVC Mappings

Lower-level Abstraction Injection

String MVC CRUD Example

@RestController Example

Spring MVC REST with Headers and Query Parameters

Testing Spring MVC REST APIs

perform

andExpect

andReturn

andDo

MockMvc Instance Creation

MockMvc Integration Test Example

MockMvc Unit Test Example

Consuming REST

Custom Error Handler

Client-Side Testing

Consuming REST Asynchronously

Summary

image Chapter 5: Java Message Service

JMS Standard Overview

Java JMS API

JMS Message

JMS Infrastructure Abstractions

Java JMS Examples

Synchronous JMS 1.1 Example

Synchronous JMS 2.0 Example

Asynchronous JMS Example

Spring JMS

Configuring Spring JMS

Caching JMS Resources

Using JmsTemplate

Using the MessageCreator Callback

Listening to JMS Messages

Converting JMS Messages

Using the Publish/Subscribe JMS Model

Integrating JMS with Higher-Level Messaging Abstractions

Summary

image Chapter 6: JMS Transactions

JMS Reliability Mechanisms

Java JMS Transaction Examples

Common Classes for Spring JMS Examples

AUTO_ACKNOWLEDGE Mode

Success Scenario

Lost Message with Listener

Lost Message with Synchronous Reception

CLIENT_ACKNOWLEDGE Mode

Success Scenario

Duplicate Message Scenario

DUPS_OK_ACKNOWLEDGE Mode

Local JMS Transactions with Spring

Success Scenario

Duplicate Message Scenario

JmsTransactionManager

Handling Duplicates

Summary

image Chapter 7: Distributed Transactions

Understanding Distributed Transactions

Cons of Distributed Transactions

Distributed Transactions with Spring

Common Classes for JTA Examples

Spring JTA Example with XML Configuration

Spring JTA Example with Java Configuration

Spring Boot JTA Example

Summary

image Chapter 8: Spring Integration

Spring Integration Introduction

Spring Integration’s Main Concepts

Common Classes Used in SI Examples

Message

Programmatic Creation of Messages

Parsing Message Headers

Message Endpoint

Message Endpoint Types

List of Message Endpoints

Channel Adapter

Service Activator

Messaging Gateway

Transformer

Content Enricher

Filter

Router

Bridge

Chain

Splitter

Aggregator

Message Channel

DirectChannel

QueueChannel

PriorityChannel

RendezvousChannel

ExecutorChannel

PublishSubscribeChannel

NullChannel

Channel Interceptor

Wire Tap

Error Handling

Custom Class in Error-Handling Examples

Synchronous Error Propagation Example

Asynchronous Bidirectional Flow

Asynchronous Unidirectional Flow

Global Error Handler Overriding

Custom Error Channel Example

Transaction Handling

Transaction Propagation Example

Transacted Polling Example

MessagingTemplate

MessagingTemplate Example

Summary

image Chapter 9: Spring Batch

Spring Batch Domain

Chunk-Oriented Processing

Common Classes for Chunk-Oriented Processing Examples

Chunk-Oriented Processing Example with XML Configuration

Chunk-Oriented Processing Example with Java Configuration

Example with File Reader and JDBC Writer

Tasklet Step

Common Classes for Tasklet Examples

Tasklet Step Example with XML Configuration

Tasklet Step Example with Java Configuration

JobLauncher

JobLauncher Example with XML Configuration

JobLauncher Example with Java Configuration

Asynchronous JobLauncher Example

JobParameters

CommandLineJobRunner

Execute Thin JAR from the Command Line

Execute Fat Spring Boot JAR from the Command Line

Execute XML Job from the Command Line

Execute Job with Parameters from the Command Line

JobRepository

Configuring JobRepository with XML Configuration

Configuring JobRepository with Java Configuration

Stateful Job and Step Execution

ExecutionContext

Batch Scopes

Batch-Processing Listeners

XML Configuration of Job Interception Example

Java Configuration of Job Interception Example

XML Configuration of Step Interception Example

Java Configuration of Step Interception example

XML Configuration of Chunk-Oriented Processing Listeners

Java Configuration of Chunk-Oriented Processing Listeners

ItemStream

XML Example of ItemStream Usage

Java Configuration Example of ItemStream Usage

Job and Step Inheritance

Configuring Restart

XML Configuration Example of Step Restart

Java Configuration Example of Step Restart

Control Repeat of Step Execution

Reacting to Failures

XML Configuration of Skip and SkipListener

Java Configuration of Skip and SkipListener

XML Configuration of Retry

Java Configuration of Retry

Conditional Execution of Step

XML Configuration of Step Decision

Java Configuration of Step Decision

Scaling and Parallel Processing

Multithreaded Step

Parallel Steps

Remote Chunking of Step

Partitioning a Step

Spring Batch Admin

Summary

Index

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.232.189