Hi Rickard,

R�> Hi!

R�> Stephan Gruschke wrote:
>> R�> IMHO the BMP-PM should unwrap the target exception. This is done by
>> R�> other anyway.
>> What should the BMP-PM do with the unwrapped exception? 

R�> Simply throw it.
Ok.

>> I would
>> suggest to write the exception to standard out 

R�> No, this is done by the LogInterceptor.
Ups ... ok. Aehm ... which logger method? debug? warning? exception?

>> and wrap it into
>> an RemoteException. 
Ok.

R�> No, application exceptions should be thrown as-is. RuntimeExceptions
R�> should be wrapped through (in a ServerException I think).

>> Is that ok? Otherwise we would have to modify the
>> method signature which is not an option.

R�> This is only for create, right? I think we have no other option but to
R�> change the signature of the PM interface to allow application
R�> exceptions.
Nope ... seems to be createEntity(), findEntity() and findEntities().
This would result in extending those method to throw Exception ...
which could be difficult for higher modules to check which exception
occured (same problem again humm). Just extending these methods with
InvocationTargetException would point out that the bean made something
wrong.



stephan.



Reply via email to