hi ,sorry i am new to jmx so i need advises from you guys..
what should i do if i want develop an application which monitor another application over the network(through internet)?
webservices or rmi? so far i not able to monitor locally by using rmi...thanks in advanced
Start by checking the documentation of your application server to see what it already provides. Most application servers these days come with jmx modules that expose Mbeans via some web frontent or as services. You can then do a service that wraps/orchestrates those already exposed functions. If you are going to access over the internet then webservices are probably the best solution. RMI requires every server used in between to play nicely which is difficult to achieve as you might not have control over all the servers that will be involved.
In that case you would need to first where your JMX application is going to live, will it also be a standalone java application or will that be deployed to some container.
Then to monitor the desktop application is pretty similar to monitoring an application deployed in a server. In both instances you need to make sure that the java command was started with options that enable JMX (remote) monitoring.
You would only be able to access MBeans exposed by the Java runtime in a standalone application (what you would normally see using jconsole) so if you need extra info/methods to be exposed you would have to change the application you are monitoring to add the required mbeans.