This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes Managing/Administering Applications in Multiple JVMs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Managing/Administering Applications in Multiple JVMs" Watch "Managing/Administering Applications in Multiple JVMs" New topic

Managing/Administering Applications in Multiple JVMs

Prashant Sehgal
Ranch Hand

Joined: Jun 20, 2003
Posts: 56

I have a requirement in my project where I need to manage, administor and monitor java applications that running in different JVMs. Basically visualise 5 executable JAR files - each of which prints "Hello World" in an infinite loop. I simulatneously run each of them from a new DOS window using java -jar HelloWorld.jar. So now I have 5 Hello World apps, each running it's own separate JVM.

Is there a way (through JMX?) that I can manage, administer and monitor these 5 apps from a single point? If yes, can someone point me to a good tutorial (with examples) where something like this is being talked about?

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41149
That sounds like a good application for JMX. The JEE FAQ has some links on JMX, particularly "introduction for Java 5", and some code in JmxExample.

Since all JVMs are running on the same machine, you'll need to figure out how to tell JMX (both the jconsole client and the various server instances) how to use different ports; otherwise they'll all try to use the default port, and nothing will work.

Ping & DNS - my free Android networking tools app
jQuery in Action, 2nd edition
subject: Managing/Administering Applications in Multiple JVMs
Similar Threads
Can I connect to database at runtime from WSAD5.0?
How To execute a function call
Vertical Scalability - Decreases: Reliability, Availability
How to check application running on windows machine using java
Deploying/Distributing Clojure App