This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JBoss and the fly likes Error email to system admin Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » JBoss
Reply 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: 5536

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
 
Similar Threads
Using SMTPAppender to attach files
Why my code is not working
JSP Error page - getting page where error occured.
How to open excel file ?
Reading the Email Address from Microsoft Outlook .pst file