This repository was archived by the owner on Feb 21, 2024. It is now read-only.
This repository was archived by the owner on Feb 21, 2024. It is now read-only.
Define MessageConverter for each Connection #8
Open
Description
Hi, hope you're doing great.
Is there any way to define a MessageConvert for each Connection?
Right now we have two Connections and we need to parse their messages using different MessageConverter:
//Connection A
@Bean
public MessageConverter jsonMessageConverter() {
return new Jackson2JsonMessageConverter();
}
//Connection B
@Bean
public MessageConverter simpleMessageConverter() {
return new SimpleMessageConverter();
}
As fas a I know I can define an AmqpTemplate and set the MessageConverter, but I don't know how to set the Template to each connection.
We are using Spring Boot 2.1.x and multirabbit 2.1.x. Thanks!
Any help would be great, thanks so much for your work and your help.