Mastering Spring Application Development
eBook - ePub

Mastering Spring Application Development

Anjana Mankale

Partager le livre
  1. 288 pages
  2. English
  3. ePUB (adapté aux mobiles)
  4. Disponible sur iOS et Android
eBook - ePub

Mastering Spring Application Development

Anjana Mankale

DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations

Foire aux questions

Comment puis-je résilier mon abonnement ?
Il vous suffit de vous rendre dans la section compte dans paramĂštres et de cliquer sur « RĂ©silier l’abonnement ». C’est aussi simple que cela ! Une fois que vous aurez rĂ©siliĂ© votre abonnement, il restera actif pour le reste de la pĂ©riode pour laquelle vous avez payĂ©. DĂ©couvrez-en plus ici.
Puis-je / comment puis-je télécharger des livres ?
Pour le moment, tous nos livres en format ePub adaptĂ©s aux mobiles peuvent ĂȘtre tĂ©lĂ©chargĂ©s via l’application. La plupart de nos PDF sont Ă©galement disponibles en tĂ©lĂ©chargement et les autres seront tĂ©lĂ©chargeables trĂšs prochainement. DĂ©couvrez-en plus ici.
Quelle est la différence entre les formules tarifaires ?
Les deux abonnements vous donnent un accĂšs complet Ă  la bibliothĂšque et Ă  toutes les fonctionnalitĂ©s de Perlego. Les seules diffĂ©rences sont les tarifs ainsi que la pĂ©riode d’abonnement : avec l’abonnement annuel, vous Ă©conomiserez environ 30 % par rapport Ă  12 mois d’abonnement mensuel.
Qu’est-ce que Perlego ?
Nous sommes un service d’abonnement Ă  des ouvrages universitaires en ligne, oĂč vous pouvez accĂ©der Ă  toute une bibliothĂšque pour un prix infĂ©rieur Ă  celui d’un seul livre par mois. Avec plus d’un million de livres sur plus de 1 000 sujets, nous avons ce qu’il vous faut ! DĂ©couvrez-en plus ici.
Prenez-vous en charge la synthÚse vocale ?
Recherchez le symbole Écouter sur votre prochain livre pour voir si vous pouvez l’écouter. L’outil Écouter lit le texte Ă  haute voix pour vous, en surlignant le passage qui est en cours de lecture. Vous pouvez le mettre sur pause, l’accĂ©lĂ©rer ou le ralentir. DĂ©couvrez-en plus ici.
Est-ce que Mastering Spring Application Development est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă  Mastering Spring Application Development par Anjana Mankale en format PDF et/ou ePUB ainsi qu’à d’autres livres populaires dans Informatica et Programmazione in Java. Nous disposons de plus d’un million d’ouvrages Ă  dĂ©couvrir dans notre catalogue.

Informations

Année
2015
ISBN
9781783987320

Mastering Spring Application Development


Table of Contents

Mastering Spring Application Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Spring Mongo Integration
Installing MongoDB and creating a database
Setting up a batch file for MongoDB
Order use case with Spring and MongoDB
Mapping a Mongo document to Spring Bean
Setting up a Spring-MongoDB project
Application design
Application implementation of Spring with MongoDB
Order management use case
Creating and inserting Order
Controller to handle requests
Adding the @Modelattribute annotation at the Method level
CRUD operations of the OrderController class
JSP files
Summary
2. Messaging with Spring JMS
Types of messaging
Message consumers
Message structure
Message-driven POJOs and listeners
Open source messaging tools
Apache ActiveMQ
Setting up ApacheMQ for point-to-point messaging
Use case for ApacheMq with Spring JmsTemplate
Spring dependency
Implementing the Order Management Messaging System with SpringJMS and ActiveMQ
Configuring dispatcherservlet.xml to use JMS
Working with multiple queues in ApacheMQ
Configuring JMS transactions
Configuring multiple JMS listeners and adapters
JMS transactions
Summary
3. Mailing with Spring Mail
Spring mail message handling process
Interfaces and classes used for sending mails with Spring
Sending mail using the @Configuration annotation
Sending mail using MailSender and SimpleMailMessage with the XML configuration
Sending mails to multiple recipients
Sending MIME messages
Sending attachments with mails
Sending preconfigured mails
Using Spring templates with Velocity to send HTML mails
Sending Spring mails over a different thread
Sending Spring mails with AOP
Summary
4. Jobs with Spring Batch
Introduction to Spring Batch
Use cases for using Spring Batch
Goals of batch processing
Architecture of a batch job
Using an enterprise batch
Dependency for Spring Batch
Key components of Spring Batch
Developing a sample batch application
Creating a sample batch application using the Tasklet interface
Using Spring Batch to read a CSV file
Spring Batch with a Spring scheduler
Configuring Spring Batch with Quartz scheduler
Using Spring Batch to read a file and update a MongoDB database
Using Spring Batch with threads to partition jobs
Intercepting a Spring Batch job with listeners
Unit testing Spring Batch applications
Summary
5. Spring Integration with FTP
Maven dependency
Spring's XSD for FTP
Configuring an outbound channel adapter for FTP
Configuring an inbound channel adapter for FTP
FTPSessionFactory and FTPSSessionFactory
Spring FTP using an outbound channel example
Configuring Spring FTP to read files in subfolders using the gateway
Configuring Spring FTP in Java
Sending files over FTP using the Spring integration
FTP application using the Spring integration and Spring batch
Summary
6. Spring Integration with HTTP
HTTP methods and status codes
HTTP headers
HTTP time-out
HTTP proxy settings in Java
Proxy configuration support in Spring
Spring Integration support for HTTP
Spring Integration support for multipart HTTP requests
Spring Integration support for HTTP responses
Configuring the outbound HTTP messages
Configuring cookies with OutboundGateway
Configuring InboundGateway with both no response and with the response
RequestMapping support for an inbound channel adapter or a gateway
Configuring the RequestMapping using the HTTP inbound endpoint
Configuring the inbound channel adapter to read request information from the URL
Configuring the outbound gateway for HTTP responses
Configuring the outbound adapter for different response types
Mapping URI variables as subelement with an HTTP outbound gateway and an outbound channel adapter
Handling time-out with the HTTP outbound gateway and the HTTP inbound gateway
Spring support for header customizations
Sending multipart HTTP requests using Spring's RestTemplate
Summary
7. Spring with Hadoop
Apache Hadoop modules
Spring namespace for Hadoop
Hadoop Distributed Files System
HBase
Map and Reduce
Creating a configuration object in Spring for Map and Reduce
Map and Reduce jobs with Spring
Dependencies for Maven project
Map and Reduce jobs using Hadoop streaming and Spring DataApache Hadoop
Summary
8. Spring with OSGI
OSGI containers
OSGI usage
Spring integration with OSGI
Spring Dynamic Modules and OSGI
Simple applications with OSGI
Integrating Spring Dynamic Modules with OSGI
Summary
9. Bootstrap your Application with Spring Boot
Setting up Spring Boot
Spring Gradle MVC application
Hot swapping with Spring Boot
Integrating Spring Boot with Spring Security
Cloud Foundry support for Eclipse Spring Boot
RestfulWebService using Spring Boot
Summary
10. Spring Cache
Spring annotations for caching
@Cacheable usage
The @CacheEvict usage
Spring caching repository
The Ehcache popular library
Spring CacheManager
Maven dependency for Spring with caching
Declarative configuration of ehcache
Spring MVC with caching
Implementing your own caching algorithm
Summary
11. Spring with Thymeleaf Integration
Thymeleaf attributes
Spring Thymeleaf dependency
Spring MVC and Thymeleaf
MVC with Spring Thymeleaf
Spring Boot with Thymeleaf and Maven
Reloading Thymeleaf templates
Spring security with Thymeleaf
Summary
12. Spring with Web Service Integration
Spring with JAX-WS
Spring Web Services with JAXB marshalling for request
Writing a client application for Spring Web Services using JAXB unmarshalling for request
Summary
Index

Mastering Spring Application Development

Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: May 2015
Production reference: 1270515
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78398-732-0
www.packtpub.com

Credits

Author
Anjana Mankale
Reviewers
Nanda Nachimuthu
Chandan Sharma
Commissioning Editor
Julian Ursell
Acquisition Editor
Sonali Vernekar
Content Development Editor
Athira Laji
Technical Editor
Chinmay S. Puranik
Copy Editors
Sonia Michelle Cheema
Brandt D'Mello
Ulka Manjrekar
Project Coordinator
Harshal Ved
Proofreaders
Stephen Copestake
Safis Editing
Indexer
Monica Ajmera Mehta
Graphics
Disha Haria
Abhinash Sahu
Production Coordinator
Nilesh R. Mohite
Cover Work
Nilesh R. Mohite

About the Author

...

Table des matiĂšres