Has something changed with the way you catch exceptions from session beans in 4.0.4.GA??
I was successfully catching ConstraintViolationExceptions by the methods already discussed on this forum. Namely
1. flushing the entity manager
2. catching ConstraintViolationException
3. throwing a new custom Checked Exceptions annotated with @ApplicationException and rollback=true
4. Catching this custom Checked Exceptions on the client.
However, since 4.0.4.GA my exceptions have gone back to being thrown as Runtimeexceptions and my client never gets them??
Did I just break something or has something changed?
Well I worked this out.
It seemed jboss throws an EntityExistsException and the inner exception is ConstraintViolationException.
Was this changed in 4.0.4.GA todo this??