A Spring Framework/Hibernate user asked for a / magic / easy / way to convert Spring Framework thrown Exception into User Defined Exception without putting a try-catch block in all my methods.
I think we can achieve this using the magic of AOP. All we have to do is create an interceptor and hock it into the applicationContext.xml without having to change one line of code into our classes nor modify the bean configuration of DAOs / Services.
No comments:
Post a Comment