File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes how to run JMX? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "how to run JMX?" Watch "how to run JMX?" New topic
Author

how to run JMX?

vinayaga moorthi
Greenhorn

Joined: Jan 31, 2006
Posts: 14
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
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42932
    
  68
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.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14433
    
  23

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.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 19070
    
  40

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


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
vinayaga moorthi
Greenhorn

Joined: Jan 31, 2006
Posts: 14
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to run JMX?