使用 sun java 而不是 IBM java 时未创建 Pmi 客户端
我的任务是通过pmi客户端监控IBM Websphere。Pmi客户端是IBM提供的用于获取MBean的代理,并且在IBM Java下运行。我尝试在Sun java下运行。但是,它无法创建 Pmiclient。有人遇到过这个问题吗?
My task to monitor the IBM Websphere through pmi client.Pmi client is an agent provided by the IBM to get MBeans and is running under IBM Java. I tried it to run under Sun java. But, it fails to create the Pmiclient. Did Anyone come across this issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
IBM JRE 有一些稍微定制的类。遗憾的是,在使用不同的 WebSphere Application Server 版本时,这种情况对于 PMI(顺便说一下还有 JMX)来说并不罕见。
有一些 hack 涉及复制相关的 IBM 实现并使用 Sun/Oracle JRE 运行它们,但根据许可条款,我认为这是无效的。您真正应该做的是使用 IBM 提供的 JRE。
如果您想要一个无风险的快捷方式,您将构建一个在 WebSphere Application Server 上运行的应用程序(可能是 EJB 或 servlet),并通过自定义接口公开 PMI 的结果。例如网络服务。
The IBM JRE has slightly customized classes. This is unfortunately not uncommon with PMI (and also JMX by the way) when working with different WebSphere Application Server versions.
There are hacks around involving copying the relevant IBM implementations and running them with the Sun/Oracle JRE but I don't think that is valid according to the licensing terms. What you really should do is to use the IBM provided JRE.
If you want a riskless shortcut you will build an applicaton (perhaps EJB or servlets) that runs on the WebSphere Application Server and exposes the results from PMI via custom interface. For instance web service.