• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Instrumenting JMX

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Does anybody have idea regarding how to instrument MBeans with real application??

Uptil now I have developed one example, in which when attributes change that time notification is been raised and I simply display message. Say I have a small application based on socket programming - a simple chat server, in which client can send message to server or to other clients. Now I want to apply JMX to this. But I dont know actually how should I instrument MBeans in that..

If You have any suggestion regarding some other application also(not necessasry this chat server example), then please do post your suggestion.

Thank You..

Jahnvi
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First you need to determine which runtime parameters you want to monitor, which of those you additionally want to be able to change, and what -if any- other actions you might want to execute via JMX.

I have added a few links to the JavaEnterpriseEditionFaq. Part 2 of the developerworks introduction contains a realistic example of how to instrument an application.

Since those introductions are a bit dated, you should also read "Using JConsole to Monitor Applications" if you are using at least Java 5.
[ January 03, 2007: Message edited by: Ulf Dittmer ]
 
Jahnvi Vyas
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Ulf.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic