开发者

Can one MBean link to another?

I'm somewhat familiar with displaying simple data via a JMX MBean using older J开发者_如何学CDKs. What I'd like to do is have one MBean link to a couple related MBeans, making it nicer for users to access related info. Is there a good, standard way to do that?

I'd like it to work in both the HTML adapter and richer clients like JConsole (i.e. I don't want to hardcode an operation to return HTML or something like that). Ideally this could be done via an attribute, though an operation would be ok. Perhaps I need to use some of the newer JMX features added in 1.6, such as MXBeans?


My conclusion is that you can return an ObjectName but it will not be linked when you access your M[X]Bean from the sun jconsole application. Instead you will just be presented the string representation of the ObjectName.

However, if you implement your own JMX client you can use these returned ObjectName to look up the "linked to" M[X]Bean.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜