Skip to main content

Sending exception by email after happen in GlassFish

5 replies [Last post]
Anonymous

Hi all,
I need capture all exception with SEVERE level and send by email in my
webapp, glassfish hava some feature for this?
If not, how i capture all exceptions in web and EJB Container?

Regards.

--
[]'s,
Ronaldo Rigoni
http://www.ronaldorigoni.com.br
Desenvolvedor JEE
Minist

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Shreedhar Ganapathy

This particular feature is among many others made available to Sun's
support customers, called Performance Advisor under the GlassFish
Enterprise Manager.
More details available here :
http://blogs.sun.com/nazrul/entry/glassfish_enterprise_manager

Webinar Recording :
https://www.sun.com/offers/details/enterprise_mgr.xml

hth
Shreedhar

Ronaldo Rigoni ... wrote:
> Hi all,
> I need capture all exception with SEVERE level and send by email in my
> webapp, glassfish hava some feature for this?
> If not, how i capture all exceptions in web and EJB Container?
>
> Regards.
>
> --
> []'s,
> Ronaldo Rigoni
> http://www.ronaldorigoni.com.br
> Desenvolvedor JEE
> Ministério da Educação - CESPE
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Ronaldo Rigoni ...

Can'i sets a Thread.setDefaultUncaughtExceptionHandler(new MyHandler()) in
EJB Container? This affect Log4J?

Regards.

2009/7/29 Shreedhar Ganapathy

> This particular feature is among many others made available to Sun's
> support customers, called Performance Advisor under the GlassFish Enterprise
> Manager.
> More details available here :
> http://blogs.sun.com/nazrul/entry/glassfish_enterprise_manager
>
> Webinar Recording :
> https://www.sun.com/offers/details/enterprise_mgr.xml
>
> hth
> Shreedhar
>
>
> Ronaldo Rigoni ... wrote:
>
>> Hi all,
>> I need capture all exception with SEVERE level and send by email in my
>> webapp, glassfish hava some feature for this?
>> If not, how i capture all exceptions in web and EJB Container?
>>
>> Regards.
>>
>> --
>> []'s,
>> Ronaldo Rigoni
>> http://www.ronaldorigoni.com.br
>> Desenvolvedor JEE
>> Ministério da Educação - CESPE
>>
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

--
[]'s,
Ronaldo Rigoni
http://www.ronaldorigoni.com.br
Desenvolvedor JEE
Ministério da Educação - CESPE
[att1.html]

Ronaldo Rigoni ...

Any idea?
This feature is no opensource. I need only opensource solutions.

Regards.

2009/7/29 Ronaldo Rigoni ...

> Can'i sets a Thread.setDefaultUncaughtExceptionHandler(new MyHandler()) in
> EJB Container? This affect Log4J?
>
> Regards.
>
> 2009/7/29 Shreedhar Ganapathy
>
>> This particular feature is among many others made available to Sun's
>> support customers, called Performance Advisor under the GlassFish Enterprise
>> Manager.
>> More details available here :
>> http://blogs.sun.com/nazrul/entry/glassfish_enterprise_manager
>>
>> Webinar Recording :
>> https://www.sun.com/offers/details/enterprise_mgr.xml
>>
>> hth
>> Shreedhar
>>
>>
>> Ronaldo Rigoni ... wrote:
>>
>>> Hi all,
>>> I need capture all exception with SEVERE level and send by email in my
>>> webapp, glassfish hava some feature for this?
>>> If not, how i capture all exceptions in web and EJB Container?
>>>
>>> Regards.
>>>
>>> --
>>> []'s,
>>> Ronaldo Rigoni
>>> http://www.ronaldorigoni.com.br
>>> Desenvolvedor JEE
>>> Ministério da Educação - CESPE
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
>> For additional commands, e-mail: users-help@glassfish.dev.java.net
>>
>>
>
>
> --
> []'s,
> Ronaldo Rigoni
> http://www.ronaldorigoni.com.br
> Desenvolvedor JEE
> Ministério da Educação - CESPE
>
>

--
[]'s,
Ronaldo Rigoni
http://www.ronaldorigoni.com.br
Desenvolvedor JEE
Ministério da Educação - CESPE
[att1.html]

Vishal Mehra

Most of the monitoring software provide this feature. Alternatively,
depending on your target environment, you could write a very simple
cron job to scan the log file for "SEVERE" error messages and email
the content.

On Thu, Jul 30, 2009 at 6:32 AM, Ronaldo Rigoni ... wrote:
> Any idea?
> This feature is no opensource. I need only opensource solutions.
>
> Regards.
>
> 2009/7/29 Ronaldo Rigoni ...
>>
>> Can'i sets a Thread.setDefaultUncaughtExceptionHandler(new MyHandler()) in
>> EJB Container? This affect Log4J?
>>
>> Regards.
>>
>> 2009/7/29 Shreedhar Ganapathy
>>>
>>> This particular feature is among many others made available to Sun's
>>> support customers, called Performance Advisor under the GlassFish Enterprise
>>> Manager.
>>> More details available here :
>>> http://blogs.sun.com/nazrul/entry/glassfish_enterprise_manager
>>>
>>> Webinar Recording :
>>> https://www.sun.com/offers/details/enterprise_mgr.xml
>>>
>>> hth
>>> Shreedhar
>>>
>>> Ronaldo Rigoni ... wrote:
>>>>
>>>> Hi all,
>>>> I need capture all exception with SEVERE level and send by email in my
>>>> webapp, glassfish hava some feature for this?
>>>> If not, how i capture all exceptions in web and EJB Container?
>>>>
>>>> Regards.
>>>>
>>>> --
>>>> []'s,
>>>> Ronaldo Rigoni
>>>> http://www.ronaldorigoni.com.br
>>>> Desenvolvedor JEE
>>>> Ministério da Educação -  CESPE
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
>>> For additional commands, e-mail: users-help@glassfish.dev.java.net
>>>
>>
>>
>>
>> --
>> []'s,
>> Ronaldo Rigoni
>> http://www.ronaldorigoni.com.br
>> Desenvolvedor JEE
>> Ministério da Educação -  CESPE
>>
>
>
>
> --
> []'s,
> Ronaldo Rigoni
> http://www.ronaldorigoni.com.br
> Desenvolvedor JEE
> Ministério da Educação -  CESPE
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

NBW

The Log4J package has the ability to e-mail exceptions and is OSS. You can
find the details here - http://logging.apache.org/log4j/1.2/index.html

IMOP its a better package then JDK logging.

You can instrument your web application / EJBs with it and you would be able
to e-mail the exception they generate. What you won't get with it are
exceptions thrown by the GF server itself since it doesn't use Log4J.

Here's a WIKI entry on the subject -

http://wiki.glassfish.java.net/Wiki.jsp?page=FaqCongifureLog4J

-Noah

On Mon, Aug 3, 2009 at 3:52 AM, Vishal Mehra wrote:

> Most of the monitoring software provide this feature. Alternatively,
> depending on your target environment, you could write a very simple
> cron job to scan the log file for "SEVERE" error messages and email
> the content.
>
> On Thu, Jul 30, 2009 at 6:32 AM, Ronaldo Rigoni ...
> wrote:
> > Any idea?
> > This feature is no opensource. I need only opensource solutions.
> >
> > Regards.
> >
> > 2009/7/29 Ronaldo Rigoni ...
> >>
> >> Can'i sets a Thread.setDefaultUncaughtExceptionHandler(new MyHandler())
> in
> >> EJB Container? This affect Log4J?
> >>
> >> Regards.
> >>
> >> 2009/7/29 Shreedhar Ganapathy
> >>>
> >>> This particular feature is among many others made available to Sun's
> >>> support customers, called Performance Advisor under the GlassFish
> Enterprise
> >>> Manager.
> >>> More details available here :
> >>> http://blogs.sun.com/nazrul/entry/glassfish_enterprise_manager
> >>>
> >>> Webinar Recording :
> >>> https://www.sun.com/offers/details/enterprise_mgr.xml
> >>>
> >>> hth
> >>> Shreedhar
> >>>
> >>> Ronaldo Rigoni ... wrote:
> >>>>
> >>>> Hi all,
> >>>> I need capture all exception with SEVERE level and send by email in my
> >>>> webapp, glassfish hava some feature for this?
> >>>> If not, how i capture all exceptions in web and EJB Container?
> >>>>
> >>>> Regards.
> >>>>
> >>>> --
> >>>> []'s,
> >>>> Ronaldo Rigoni
> >>>> http://www.ronaldorigoni.com.br
> >>>> Desenvolvedor JEE
> >>>> Ministério da Educação - CESPE
> >>>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> >>> For additional commands, e-mail: users-help@glassfish.dev.java.net
> >>>
> >>
> >>
> >>
> >> --
> >> []'s,
> >> Ronaldo Rigoni
> >> http://www.ronaldorigoni.com.br
> >> Desenvolvedor JEE
> >> Ministério da Educação - CESPE
> >>
> >
> >
> >
> > --
> > []'s,
> > Ronaldo Rigoni
> > http://www.ronaldorigoni.com.br
> > Desenvolvedor JEE
> > Ministério da Educação - CESPE
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>
[att1.html]