We are using Jboss 6 Final as our application server.
We have a requirement that on any exception on production server the application should send emails to mentioned email address . I have tried the log4j's SMTP appender which sends email and is running in error mode. But it is quite unfriendly because of its buffer size limitations and in the end we are getting flooded with emails .
I have also tried implementing java.beans.ExceptionListener but Jboss throws an exception that it does not inherit the marker interface java.util.EventListener. I want some suggestions . I am sure this is quite a common used case in web applications. Please suggest some solution.