aspose file tools*
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
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Managing/Administering Applications in Multiple JVMs" Watch "Managing/Administering Applications in Multiple JVMs" New topic
Author

Managing/Administering Applications in Multiple JVMs

Prashant Sehgal
Ranch Hand

Joined: Jun 20, 2003
Posts: 56
Hi,

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?

Thanks,
Prashant.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
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 - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Managing/Administering Applications in Multiple JVMs
 
Similar Threads
How To execute a function call
Can I connect to database at runtime from WSAD5.0?
Vertical Scalability - Decreases: Reliability, Availability
Deploying/Distributing Clojure App
How to check application running on windows machine using java