Hi Du,

I was hoping that was possible, but I am unable to find any reference in the documentation how to do that.

Could you provide any pointers how can I configure Axis2 to use my exception handler?

-Ognjen


On 27.1.2011 17:16, haipeng du wrote:
I think you can write your own handler and configure axis2.xml to
process exception.

2011/1/27 Ognjen Blagojevic <ognjen.d.blagoje...@gmail.com
<mailto:ognjen.d.blagoje...@gmail.com>>

    Hi,

    I have a web service with several hundred methods, each of which may
    throw a RuntimeException.

    I need to to do certain action (log, send email) when exception is
    thrown, and then to re-throw it. Is it possible to do that globally
    (using some kid of global exception handler), W/O nesting try-catch
    block in every method?

    Regards,
    Ognjen

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
    <mailto:java-user-unsubscr...@axis.apache.org>
    For additional commands, e-mail: java-user-h...@axis.apache.org
    <mailto:java-user-h...@axis.apache.org>




--
Haipeng Du
Salt Lake City


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
For additional commands, e-mail: java-user-h...@axis.apache.org

Reply via email to