Looking at the general architecture of Muse I'd say
org.apache.axis2.transport.http.AxisServlet (and whatever the equivalent is
for Mini) is the best place if you want to catch everything that can be
thrown in all of Muse and Axis2, since that is the entry/exit point for the
resource on the Http request. 

That might cause you some problems depending on what you want to do though,
as some errors might show there just as generic SoapFaults
(NullPointerExceptions show like that for me for example).

You could also look at the AxisIsolationLayer (or MiniIsolationLayer) class,
as that is the web service class deployed under Axis2 for Muse resources.
With this one you would generally lose errors that appear in the Axis2
layer, but that might not be a problem as I do not think generally you
should see exceptions in the Axis2 layer.



Vinh Nguyen (vinguye2) wrote:
> 
> What's the best location to catch all errors/faults that can be thrown
> from Muse and Axis2?  Right now, a client can receive errors from either
> components, so it's difficult for them to respond to errors in an
> automatic fashion if they don't know the range of errors that can be
> thrown.  I'd like to catch these errors and convert them to a smaller
> set of errors to make it easier for a client to handle.
>  
> I first thought I'd do this in the SimpleResourceRouter, but this is
> still in a lower layer.  Would the best place be in the
> AxisServlet/MiniServet class?
> 
> 

-- 
View this message in context: 
http://www.nabble.com/central-point-to-catch-all-Muse-Axis2-errors--tf4308603.html#a12274117
Sent from the Muse User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to