This is an automated email from the ASF dual-hosted git repository. btellier pushed a commit to branch rabbit-polish in repository https://gitbox.apache.org/repos/asf/james-project.git
commit dd1dd130b5f02b148de12187882ddf3855d3785c Author: Benoit TELLIER <[email protected]> AuthorDate: Sun Feb 11 22:11:37 2024 +0100 [RABBITMQ] Prevent some class cast --- .../org/apache/james/backends/rabbitmq/RabbitMQConnectionFactory.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backends-common/rabbitmq/src/main/java/org/apache/james/backends/rabbitmq/RabbitMQConnectionFactory.java b/backends-common/rabbitmq/src/main/java/org/apache/james/backends/rabbitmq/RabbitMQConnectionFactory.java index e38f52430c..18732ab32f 100644 --- a/backends-common/rabbitmq/src/main/java/org/apache/james/backends/rabbitmq/RabbitMQConnectionFactory.java +++ b/backends-common/rabbitmq/src/main/java/org/apache/james/backends/rabbitmq/RabbitMQConnectionFactory.java @@ -87,6 +87,9 @@ public class RabbitMQConnectionFactory { setupSslConfiguration(connectionFactory); } + // CF https://github.com/rabbitmq/rabbitmq-java-client/issues/708 causes class cast exceptions + connectionFactory.setChannelShouldCheckRpcResponseType(true); + return connectionFactory; } catch (Exception e) { throw new RuntimeException(e); --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
