aspose file tools*
The moose likes JBoss/WildFly and the fly likes Error email to system admin Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Error email to system admin" Watch "Error email to system admin" New topic
Author

Error email to system admin

Emil dombagolla
Greenhorn

Joined: May 26, 2010
Posts: 3
Dear all,

I use jboss 5.1 .

I have developed struts2 application. And there are few error pages defined for the application.

What i want to know is , when this application in production if any error occurred (It means if it is landed to any of the error page) , i want to get an email in to my inbox with the error description.

how i can get it done this, Please help me .

Thank you so much.
Emil


Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

Try using the SMTPAppender and direct ERROR log entries to it.
http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/net/SMTPAppender.html
Logging in AS 5.1 is done in server/xxx/conf/jboss-logging.xml - add the SMTPAppender to it.


JBoss In Action
Emil dombagolla
Greenhorn

Joined: May 26, 2010
Posts: 3
Peter Johnson wrote:Try using the SMTPAppender and direct ERROR log entries to it.
http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/net/SMTPAppender.html
Logging in AS 5.1 is done in server/xxx/conf/jboss-logging.xml - add the SMTPAppender to it.



Thank you so much, this helped me lot.

Emil
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error email to system admin