Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

JMX connection

 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Rancher
Posts: 989
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the application deployed into an application server or is it a standalone java application?
 
kahkean chor
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is application server. can give some advises?
 
E Armitage
Rancher
Posts: 989
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
kahkean chor
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ohh noted. how if monitor a desktop application rather than application server?
 
E Armitage
Rancher
Posts: 989
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
kahkean chor
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi E Armitage thanks for your help , do you have any third party library or tutorials to let me refer?
 
Tomorrow is the first day of the new metric calendar. Comfort me tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic