🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #138

Re: JMX for complex data objects?

#138
From: Tad Frysinger
Date: Fri, 14 May 2004 16:32
27 lines
2453 bytes
davout wrote:
> I've been reading up on JMX,  and I'm struggling to see how JMX can be used to report a complex state object. All of the examples and articles focus on reporting simple one element integer or string properties.
> 
> Can JMX be used to report a state that is represented by an aggregate object of multiple properties and perhaps nested sub objects?
> 
> If anybody can point me at some examples that would help.
> 
> 
> 
Actually, there is nothing in the JMX spec that dictates what your MBean 
can utilize as data types for it's attributes - just that it follow the 
naming patterns (generally: JavaBean patterns) when implementing (if a 
Standard MBean), or you have a proper MBeanInfo (if a Dynamic MBean).

For example, you can return a complex object if you choose as an 
attribute. You can pass a compex object to an operation that is defined 
for that MBean. The issue really is, what the consumer of that attribute 
data does with it, or the knowledge required between a producer of a 
complex object and the MBean that consumes it (i.e. as an argument to an 
MBean operation).

You are probably basing your question on seeing the examples that use 
the HTML Adapter as a consumer, which is tries to visually represent the 
attribute data on an HTML screen. It can "automatically" do that for the 
scalar data types, but obviously has no clue how to render a Foo object.
-- 
Tad Frysinger [TeamB]
Technical Details
Message-ID: <40a4f487@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40a39286$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,fd694c455caa61f1
X-Google-Attributes: gid1089d0,public
Date: Fri, 14 May 2004 10:32:06 -0600
From: Tad Frysinger <tfrysinger@earthlink.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.api
Subject: Re: JMX for complex data objects?
References: <40a39286$1@newsgroups.borland.com>
In-Reply-To: <40a39286$1@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 64.58.30.72
Message-ID: <40a4f487@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1084552327 64.58.30.72 (14 May 2004 09:32:07 -0700)
Lines: 28
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail