This sounds like some great new functionality. Would be fantastic to have JAX-WS support.

On Feb 12, 2009, at 5:15 AM, Jean-Louis MONTEIRO wrote:

I'm fixing the exception behavior but I need to be sure.

In the EJB specification, we can receive :
- ApplicationException:
 - checked exception declared in the method signature
 - runtime exception + @ApplicationException
- SystemException
 - everything else

For web service, the specification is not as clear. My understanding is:
- a WebFault is a checked exception with the @WebFault annotation. The
client will then receive the business checked exception.
- everything else is returned to the client as a SOAPFaultException

So for checked exception EJB and WS calls are equivalent but what about EJB ApplicationException based on RuntimeException + @ApplicationException ?

I would guess that any exception annotated with @ApplicationException would be treated as if it was annotated with @WebFault. Not sure if there are limitations that would prevent that, but it seems like the most intuitive approach.

That said I don't this are one of my stronger areas of expertise, so I'm pretty open either way. What thoughts did you have?

-David

Reply via email to