Closed BigBallard closed 2 years ago
@DallasP9124 Could you please provide a sample application as either a GitHub project or an attached zip file that we can run. We'll also need instructions on how to configure Artemis (or better still a Docker based test).
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.
Description
I am working on on having two different
DefaultJmsListenerContainerFactory
's, one for listening to Queue's and the other for Topic's based on an issue that suggested this implementation . The only major difference between the two@Bean
methods is that one configures withsetPubSubDomain(true)
for Topic's and the othersetPubSubDomain(false)
for Queue's. Otherwise both are configured the same including the use of a customeMessageConverter
.When I start up the application there are two
@JmsListener
's, one for topic and one for queue. Each respectively assigned the correct container factory based on what type of destination the message's are coming from.With the topic configuration, the custom MessageConverter is used and the JmsListener's method is called with the converted object. However, when the queue's message is received, the converter is not called and JmsListener method is not called. I have enabled logging for the amq stuff and did notice that the message was being received and it was printing it to console. Watching the Artemis console I can see that the connections are made with the expected consumer and the messages are being pulled from the queue.
During the message converter configuration I ensure that the message ID mappings are made accordingly.
Expected behavior
Both JmsListener methods would be called respectively when receiving a message from the topic/queue and the customer MessageConverter being called.
Actual Bheavior
Only the topic JmsListener is being called with the converted messages. The queue messages are not being forward to the converter.
Code
QueueJmsReceiver
TopicAmqReceiver
JmsConfiguration
CustomMessageConverter