Hi All...
I have a simple Sprint Boot app that consumes messages and writes them to Oracle. All it does is instantiate a Connectionfactory() , set its parameters, then it gets a connection, creates a channel and a queue. Then it instantiates DefaultConsumer with the channel.
It works fine, but its slow. I have three producers sending messages very rapidly, and they are piling up at the broker. So it seems I need a consumer that can use multiple threads.
I think what I need to use is SimpleMessageListenerContainer but I have been Googling, but I'm having trouble finding an example. If I try to just write it, it's an unknown type. Its import org.springframework.amqp.rabbit.listener is also not found, even though I have the amqp-client in my POM. That makes me think I'm trying to use something from another package that's not compatible.
So if someone could point me in the right direction I would appreciate it...