I am trying to create multiple queue receivers based on the queueNames
from the database. I have tried creating a JpaRepository
and in @Configuration
class Autowired
it. But this approach is throwing error. Is there any other way to accomplish this?
Note: I am using Spring Boot.
In spring is only @JmsListener annotation but you can't change it dynamically.
There is only one way. You can get list of topics/queues from database and after that poll topics/queues in a loop.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.