hi,
I just got a requirement to catch java runtime exceptions in a unifrom way without those DMI javabeans knowing.
I am now using datasource DMI way to handle client-side requests. those DMI javabeans need to invoke middle-layer services to fetch data back. So the point is how can I catch those common runtime exceptions, such as SQLException, in one place and without DMI javabeans knowing to put some information back into Response.
As the document says, SmartClient can integrate with Spring, so I think I may use Spring’s exception intercepting mechanism to uniformly handle middle-layer exceptions throwing and put some error message into the PRCResponse.
so here are my questions :
- is what I thought a right way to solve my problem ?
- is there any example to show how to integrate with Spring in detail ?
- any further tips ?
thanks ![]()