Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
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
JBoss: Developer's Guide

You're reading from   JBoss: Developer's Guide A complete guide to the JBoss ecosystem

Arrow left icon
Product type Paperback
Published in Aug 2017
Publisher Packt
ISBN-13 9781788296199
Length 328 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Elvadas Nono Woguia Elvadas Nono Woguia
Author Profile Icon Elvadas Nono Woguia
Elvadas Nono Woguia
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. Introduction to the JBoss Ecosystem FREE CHAPTER 2. Developing and Hosting Scalable Web Applications 3. Custom Web Deployment using Undertow and Swarm 4. Storing and Accessing Distributed Data 5. Exposing Data as a Service 6. Integrating Applications with JBoss Fuse 7. Delivers Information Safely and Connects IoT 8. Making Better Decisions in Your Applications 9. Developing Workflows

AMQ topologies

While using AMQ, one technique to avoid a single point of failure is to set up a master-slave topology. In a master-slave configuration, a set of brokers cooperate to ensure that the cluster does not go down. It is an active-passive configuration, where the master and slaves synchronize themselves using various locking mechanisms: shared filesystem, shared database, replicated stores, colocated, and so on. The master should always be active to maintain the cluster is up and running. Once the master goes down, a slave node immediately detects the breakdown and becomes the new master node. In such a configuration, clients have to adjust the calling URL with the failover URL to automatically switch to the new broker:

To build a master-slave configuration from the existing standalone instances--broker1(127.0.0.2) and broker2(127.0.0.3)--we need to update broker.xml...

lock icon The rest of the chapter is locked
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