Mastering spring application development : gain expertise in developing and caching your applications running on the JVM with spring /
Chapter 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...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Publishing,
[2015]
|
Colección: | Community experience distilled.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 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 classJSP files; Summary; Chapter 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 adaptersJMS transactions; Summary; Chapter 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.
- Intercepting a Spring Batch job with listenersUnit testing Spring Batch applications; Summary; Chapter 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.