Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Spring Application Development

You're reading from   Mastering Spring Application Development Gain expertise in developing and caching your applications running on the JVM with Spring

Arrow left icon
Product type Paperback
Published in May 2015
Publisher
ISBN-13 9781783987320
Length 288 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Anjana Mankale Anjana Mankale
Author Profile Icon Anjana Mankale
Anjana Mankale
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Preface 1. Spring Mongo Integration 2. Messaging with Spring JMS FREE CHAPTER 3. Mailing with Spring Mail 4. Jobs with Spring Batch 5. Spring Integration with FTP 6. Spring Integration with HTTP 7. Spring with Hadoop 8. Spring with OSGI 9. Bootstrap your Application with Spring Boot 10. Spring Cache 11. Spring with Thymeleaf Integration 12. Spring with Web Service Integration Index

Types of messaging


There are two types of messaging domains to be chosen from, as per the requirement:

  • Point-to-point messaging:

    • Each message has only one consumer

    • There is no timing dependency

  • Publish-Subscribe messaging:

    • Each message has many consumers

    • Messages have a timing dependency - when an application sends a message to the messaging agent, the consumer needs to subscribe and be active to receive the messages

Message consumers

These are the ways of consuming messages provided by JMS API:

  • Message listeners

    • They provide an asynchronous messaging model

    • Listeners are like event watchers/listeners; whenever a message is available, the listener ensures that it reaches its destination

    • Listeners will call the onMessage() method

  • The receive() method

    • It provides a synchronous messaging model()

    • Messages are consumed by explicitly calling the receive() method from the connection factory

Message structure

A message consists of three parts:

  • Header: This contains information about the destination and timestamp...

You have been reading a chapter from
Mastering Spring Application Development
Published in: May 2015
Publisher:
ISBN-13: 9781783987320
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image