Hi,
just an suggestion for the bean exception handling inside jboss:
Maybe we should create a new exception type 'BeanException' which is
thrown from the modules to indicate that the executing bean has thrown an
exception.
We could provide some more information in the BeanException:
- name of bean
- original exception (including stacktrace...)
- was exception declared in bean interface ((un)expected exception?)
- etc....
The exception type would be more informative than
'InvocationTargetException' because this exception could have been
originated from any internal module of jboss.
For design purpose we could even extend BeanException to
SessionBeanException, EntityBeanException, etc....
The proxy could unwrap the original exception from the BeanException
object and throw it towards the client.
Any suggestions?
Stephan.