File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Observer for JVM

James Gordon
Ranch Hand

Joined: Aug 09, 2002
Posts: 106

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
author & internet detective

Joined: May 26, 2003
Posts: 33117

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.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: Observer for JVM
It's not a secret anymore!