> So would it be possible to write a special request handler in > the beanīs > transport chain that takes your > (non-Axis-Fault, means that the container will let it through > unchanged) > application exception and wraps it into an appropriately > massaged axis fault > such that the name of the original exception will appear in > the response > envelope?
Unfortunately not. The JavaProvider, if my memory is correct, catches the exception and changes it into an AxisFault before it gets back to the chains. But even if it did get back to the provider chain it would still not get back to the transport one, at least not with Axis 1.0. The onFault method is only called on the handlers in the current chain, the AxisServer allows the AxisFault to continue unimpeded once the current chain has handled it. I'm not sure if this is the intended behaviour but it is certainly the implemented one. I would have hoped for something more like the network streams or jboss' invocators. > Then you can have a client-side stub that reconstructs the > exception for you I have my own EJBProvider that dynamically exposes a group of our session beans as ports within a service. When this calls the invoked method it catches the InvocationTargetException and wraps a serialised version of the exception in an AxisFault. The generated proxy code then checks the axis fault to see if it contains one of the expected exceptions and then throws it. I also had to tweak the generators to prevent generation of the derived axis faults. I'm away to Paris this weekend but I'll send you some more information on Tuesday when I return. Kev Kevin Conner This is a personal e-mail. Any views or opinions presented are solely those of the author and do not necessarily represent those of Orchard Information Systems Ltd. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user