aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Observer for JVM Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Observer for JVM" Watch "Observer for JVM" New topic
Author

Observer for JVM

James Gordon
Ranch Hand

Joined: Aug 09, 2002
Posts: 106
Hi,

Under the J2EE environment, is it possible for us to create something
like an observer for the JVM process?

What I intend to do is to send out some notifications if the JVM would ever
crash, especially in the production environment.

Currently, what I have in mind is just a java process which would check
the existance of the JVM process on a scheduled intervals.

Is there a better way to do so?

Please advise.


Thanks in advance.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30537
    
150

James,
Take a look at JMX (Java Management Extensions.) It is designed for monitoring.

You could probably get away with a cron job. I don't know enough about JMX to know the advantages.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Observer for JVM