How do you configure JMS for fault-tolerant messaging in Spring Boot?
Combine persistent messages, transacted listeners, a dead-letter queue and reconnecting clients to get reliable at-least-once JMS messaging in Spring Boot.
2,888 posts about Java: questions with answers, tutorials and articles, newest first.
Combine persistent messages, transacted listeners, a dead-letter queue and reconnecting clients to get reliable at-least-once JMS messaging in Spring Boot.
Configure ActiveMQ redelivery with back-off, make the listener transacted, route failures to a per-queue dead-letter queue and replay them safely.
Learn how JMS acknowledgment modes work in Spring Boot, how to configure them, and how to avoid lost or endlessly redelivered messages.
Send and receive on queues and topics with JmsTemplate and @JmsListener, configure pub-sub and durable subscriptions, and use JSON message conversion.
Set up JMS in Spring Boot 3 with the Artemis starter, send JSON with JmsTemplate and receive with @JmsListener, including converters and concurrency tuning.
Set up JMS in Spring Boot with ActiveMQ: starter, broker config, JmsTemplate producers, JmsListener consumers, JSON payloads and error handling.
Combine JMS selectors, ActiveMQ virtual topics, composite destinations and a code-level router to control where messages go in a Spring Boot application.
Quorum queues are a RabbitMQ feature. In ActiveMQ you get durability from Artemis replication with quorum voting or shared-storage failover.
ActiveMQ delivers at least once, so duplicates will happen. Learn how to make a Spring Boot JMS listener idempotent with a unique-key table and transactions.
Set message TTL on the producer with JmsTemplate explicit QoS or a producer callback, then control expired messages on the ActiveMQ broker.
ActiveMQ memory and flow control are set on the broker. Learn systemUsage limits, producer flow control, send timeouts, pooling and monitoring.
Header exchanges are a RabbitMQ idea. In ActiveMQ you get the same result with message properties and JMS selectors on Spring Boot listeners.
Set JMS priority on the producer and enable prioritizedMessages on the ActiveMQ queue so urgent messages are delivered first.
See how JMS transactions work in Spring Boot with ActiveMQ: transacted listeners, atomic sends, redelivery policy, and why a database needs the outbox pattern.
Shovels are a RabbitMQ plugin. In ActiveMQ you move messages between brokers with network connectors, Artemis bridges or a transacted Spring Boot relay.
Federate ActiveMQ brokers across regions with a networkConnector bridge, then let Spring Boot apps use their local broker. Includes security and tuning options.
Enable the ActiveMQ scheduler and set AMQ_SCHEDULED_DELAY on a JmsTemplate message to deliver it later, with repeat, cron and troubleshooting tips.
ActiveMQ has no fanout exchange; JMS topics and virtual topics give the same broadcast behaviour. See the Spring Boot code for publishers and subscribers.
Topic exchanges are a RabbitMQ idea. In ActiveMQ you publish to JMS topics with Spring Boot, route with wildcards and use virtual topics for durability.
Use JMS selectors to deliver only matching ActiveMQ messages to each Spring Boot consumer, with producer property examples and common queue pitfalls.