Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

spring amqp exchange not found

Unlike JMS, publishing to RabbitMQ is asynchronous (which is why it's generally faster), so the failure for a missing exchange is reported on a different thread; you can add a listener to get the notification instead of it just being logged.

You can enable transactions template.setChannelTransacted(true); and then the failure will be reported on the publishing thread because it will be blocked waiting for the reply from the txCommit() when the IO error occurs.

However, transactions are quite expensive so can hurt performance.

For other errors (e.g. exchange exists, but no route to a queue), you can use publisher confirms and returns but, again, waiting for a confirmation for each individual message published will slow down performance.
Comment

PREVIOUS NEXT
Code Example
Java :: how to make character in jframe 
Java :: java manipulate alphabet list 
Java :: how to create simple java bean class for login page in eclipse 
Sql :: mysql disable safe mode 
Sql :: sql server drop temp table if exists 
Sql :: mysql how to truncate table with foreign keys 
Sql :: sql server reset identity 
Sql :: TSQL GET ALL COLUMNS IN TABLE 
Sql :: mysql get table size 
Sql :: Port 5432 is already in use Usually this means that there is already a PostgreSQL server running on your Mac. If you want to run multiple servers simultaneously, use different ports. 
Sql :: sql ignore accents 
Sql :: list all indexes postgres 
Sql :: list all triggers in sql server 
Sql :: oracle list columns schema 
Sql :: mysql workbench download for iinux mint 19.3 
Sql :: sql drop table if exists 
Sql :: how to increase size of column in sql 
Sql :: sql server: query to find out all the places where the table is used 
Sql :: sql script get all stored procedures from database 
Sql :: drop table if exists in postgres 
Sql :: wordpress database query change url 
Sql :: psql get sequences 
Sql :: not today mysql 
Sql :: mysql delete row 
Sql :: wordpress change http to https phpmyadmin 
Sql :: athena query timestamp greater than 
Sql :: import dump mysql 
Sql :: show user mysql 
Sql :: oracle delete last row 
Sql :: check database size sql 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =