简体   繁体   中英

Is it possible to listen to multiple TIbco EMS queues in Spring boot?

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM