如何配置 CXF Web 服务以便 Glassfish 可以监控它们

发布于 2024-08-08 05:53:46 字数 463 浏览 3 评论 0 原文

我们在 CXF 框架 实现的 Web 服务.java.net" rel="nofollow noreferrer">Glassfish 应用程序服务器。 Glassfish 可以通过其监控部署在服务器上的 Web 服务管理控制台。

我们希望能够将 Glassfish 的这些监控功能用于使用 CXF 实现的 Web 服务,但是当我们部署 Web 服务应用程序时,无法通过 Glassfish 管理控制台使用这些服务。

有谁知道如何配置 CXF Web 服务以便它们显示在 Glassfish 的管理控制台中?

We deploy web services implemented by using the CXF framework on the Glassfish application server. Glassfish has the possibility to monitor Web Services deployed on the server through it's management console.

We would like to be able to use these monitor features of Glassfish towards the web services implemented by using CXF, but when we deploy the web service application, the services isn't available through the Glassfish management console.

Does anyone know how to configure the CXF web services so they show up in Glassfish's management console?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

南巷近海 2024-08-15 05:53:46

有一些文档:

http://cxf.apache.org/docs/jmx- management.html

了解如何在 CXF 中启用 JMX 检测。然而,这里还缺少一些东西。在 2.2.3 及更新版本中,InstrumentationManagerImpl bean 上有一些新属性,可以告诉它不要创建新的 MBean 服务器和连接,并希望使用平台提供的内容。

<代码>
true

将只调用:

mbs = ManagementFactory.getPlatformMBeanServer();

这将有望获得默认的 GlassFish MBS。

false

不会创建新的连接器。

另外,如果您可以从 spring 上下文中获取 GlassFish MBS 的句柄(spring 可能有办法做到这一点),您可以将“server”属性设置为实际的 MBeanServer。

There are some docs at:

http://cxf.apache.org/docs/jmx-management.html

about how to enable the JMX instrumentation in CXF. There are a couple things missing there however. With 2.2.3 and newer, there are some new properties on the InstrumentationManagerImpl bean that can tell it to NOT create a new MBean server and connection and stuff an hopefully use the platform supplied one.


<usePlatformMBeanServer>true</usePlatformMBeanServer>

will just call:

mbs = ManagementFactory.getPlatformMBeanServer();

which will hopefully get the default GlassFish MBS.

<createMBServerConnectorFactory>false</createMBServerConnectorFactory>

would not create a new connector.

Also, if you can get a handle on the GlassFish MBS from the spring context, (spring probably has ways to do it), you can set the "server" property to the actual MBeanServer.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文