• Post Reply Bookmark Topic Watch Topic
  • New Topic

JMX: Model MBean auto-gen  RSS feed

 
Takeshi Toyohara
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do people think is the best Model MBean auto-gen tool out there? the jmxdoclet from the xdoclet project?
 
Aruna Shankar
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i am trying to implement a simple Model MBean .but not able to.so, plz send me some Model MBean example
 
Henry Wong
author
Sheriff
Posts: 23282
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Aruna Shankar:
hi
i am trying to implement a simple Model MBean .but not able to.so, plz send me some Model MBean example


The Sun Docs on Model MBeans do give an example on how to create one. The example is pretty straightforward. Should get you up to speed quickly -- assuming you have a basic knowledge of JMX.

[Soapbox, will probably get slammed for this]

IMHO, I don't see Model MBeans as being that useful. In the past, I have ported data resources to Standard MBeans, or wrote Standard MBeans that encapsulated a resource, faster, (and probably clearer), than creating the BeanInfo for a Model MBean. I just feel that using Model MBeans is more complicated than the task that it is trying to solve.

The only advantage that I can think of, is, since the Model MBean separates the model from the implementation, it is possible to auto-generate the mbean info... but then, this requires learning another tool, and / or a metadata format.

[/Soapbox]

Henry
[ March 25, 2006: Message edited by: Henry Wong ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!