在我的应用程序中显示侦听器及其状态 [英] Displaying the listeners and their status in my application

查看:96
本文介绍了在我的应用程序中显示侦听器及其状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的 spring 应用程序中,我想显示侦听器及其运行状态.我正在使用 @JmsListener 注释.我从这个网址得到了提示 - 配置多个 DefaultJmslistenercontainerfactory

In my spring application, i want to display the Listeners and their running status.I am using @JmsListener anotation. I got hint from this url - Configuring multiple DefaultJmslistenercontainerfactory

但是,我也面临着同样的挑战,我确实获得了听众的状态,但没有获得听众的 ID.此外,我想使用相同的 id 启动/停止侦听器

However, i am also facing a same challenge, I do get the listener statuses but not getting Id's of the listener. Further on, i want to start/stop the listener using same ids

如何获取监听器的 id?

How can i get the id's of the Listeners?

推荐答案

目前没有用于获取侦听器容器 ID 列表的 API.

There's not currently an API to get the list of listener container ids.

我打开了一个 JIRA 问题,您可以跟踪.

I have opened a JIRA Issue which you can track.

这篇关于在我的应用程序中显示侦听器及其状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆