访问 WebSphere API(管理控制台/Wsadmin)
假设我正在编写一个需要访问 WebSphere API 的软件 - 检索单元名称、服务器名称等 - 我可以从管理控制台获取信息 - 有没有办法(最好使用 http)来获取准确的信息我正在寻找的信息?
也就是说,一个供程序读取的AdminConsole? 我知道有wsadmin,但我不知道是否可以像服务器一样访问它。如果是这样,怎么办?
谢谢。
Let's say I am writing a software that needs accesing to WebSphere API - retriving the cell name, the server names etc. - information I can get from the Admin Console - Is there a way (using http, web is perfered) to get the exact information I am looking for?
That is, an AdminConsole for programs to read?
I know that there is the wsadmin, but I don't know if it can be accessed as if it were a server. If so, how?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
基本上,您在管理控制台中看到的每个功能(或者可以通过 wsadmin 访问的功能)都是由 MBean 公开的,并且可以使用 JMX 进行调用。
Basically, every functionality you see in the Admin console (or that can be accessed via wsadmin) is exposed by an MBean and can be invoked using JMX.
wsadmin 是一个与 WAS 捆绑在一起的工具,它可以满足您所要求的一切。它可以用来管理远程 WAS,并且可以在没有 WAS 的情况下作为独立程序运行。
WAS 具有用于托管 bean 的 JMX 接口。通过它,您可以检查配置并管理 wasdmin 提供的所有 AdminControl 选项,甚至更多。
wsadmin is a tool which is bundled with WAS and it allows everything you asked for. It can be used to administrate remote WAS, and it can be run as standalone program without WAS.
WAS has JMX interface for managed beans. Through it you can inspect configuration and administrate all AdminControl options given by wasdmin and even more.