Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Translating Spring exceptions

  1. #11
    Join Date
    Mar 2005
    Posts
    135

    Default

    I'm looking for the most suitable solution for our system.

    How should this work with an interceptor approach?

    I've also been thinking to use a 'business delegate' pattern, for translating these exceptions client-side, as we did in the past with the EJB systems.

    Which approach do you find the 'cleanest'?

  2. #12
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    IMHO, AOP is probably the 'cleanest' way of doing this. I've used this a few times and I thought it felt like the best solution. There's very little to think about here, it's all done for you. As long as the AOP matches your beans, your working is done. If you are wanting to go with a pre Spring 2.0 approach you could still go this way but use something like BeanNameAutoProxyCreator or ProxyFactoryBean instead. It's the same principle.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •