views:

31

answers:

1

Hi,

I am trying to use JMX to monitor the status of my application, in particular to track any exceptions that are thrown during my application's runtime.

However, I cannot seem to find any existing APIs that can retrieve the exceptions thrown. I went as far as getting a thread's stacktrace but there ain't any exception info captured. Anyone has any idea?

Thanks.

A: 

Try using JMX notifications. You have a great tutorial here

thelost
Assuming the application is written by me, I will be able to send a notification each time I hit an exception. But what if the application is already compiled as class files. How then can I detect an exception is thrown on the monitored application?
Leongzai
I have installed YourKit and they seemed to have a generic way to detect a list of exceptions thrown from the running application. I will like to do something like that :-)
Leongzai