• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

how to run JMX?  RSS feed

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello friends,

i need the details of "how to run the JMX program" and what are the rewuirements for running the JMX programs. help me. i am doing project on this concept.

advance thanks
 
Rancher
Posts: 43009
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JMX is not a program - it is an API that allows you to monitor a (possibly remote) application and (optionally) change its behavior at runtime. Incorporating JMX means to define which aspects of an application can be monitored/controlled -by defining in interface-, and enabling JMX access in the application. Then you can use any of a number of JMX monitoring tools to access your application through that interface.
 
Java Cowboy
Posts: 16084
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See this: Java Management Extensions (JMX)

Java 1.5 has some JMX stuff built-in, inclusing the tool jconsole, which allows you to monitor other running JVMs using JMX.

Especially have a look at the Java Management Extensions (JMX) Technology Tutorial - it contains step by step examples.
 
author
Posts: 23832
140
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 vinayaga moorthi:
hello friends,

i need the details of "how to run the JMX program" and what are the rewuirements for running the JMX programs. help me. i am doing project on this concept.

advance thanks



To run a "JMX program", you need a JMX container. Java 5 has one built into the JVM. Tomcat, Weblogic, Websphere, etc. all have JMX containers built in. These containers have programs (known as mbeans) which report the status of the application that it is monitoring.

For example, in the Weblogic JMX container, there is an mbean for each servlet, EJB, user connection, etc., in the system. You can connect to the JMX container, either through JNDI, or via a connector, find the mbean you want, and monitor or control the item that the mbean is managing.

Another example, if you have an EJB with special management needs that you want to expose. You can write an mbean, which can be loaded into the JMX container. This mbean will take management requests from clients -- and internally, will make a JNDI connection to your EJB, working through a private (not documented) interface.

Henry
 
vinayaga moorthi
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends
Thanks for u r reply. i need some sample codings which will start or stop or restart the remote service. hellp me

thanks
 
passwords must contain 14 characters, a number, punctuation, a small bird, a bit of cheese and a tiny ad.
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!