Results 1 to 3 of 3

Thread: ThrowsAdvice afterThrowing method parameter

  1. #1

    Default ThrowsAdvice afterThrowing method parameter

    I'm a little confused with implementing the ThrowsAdvice interface.

    If I have afterThrowing with the full parameter list (including method, target, etc) in a facade class, and a DAO called from the facade throws DataAccessException, what will I get as a parameter? Will I get the facade method that called the DAO (which is what I want), or the DAO method that actually threw the exception?

  2. #2
    Join Date
    Aug 2004
    Location
    Southampton, UK
    Posts
    826

    Default

    You will get the method that is being intercepted - so the method on the proxy that you are adding some advice to.

    Rob
    Rob Harrop
    Lead Engineer, dm Server
    SpringSource
    http://www.springsource.com

    Co-Author - Pro Spring

  3. #3

    Default

    Excellent, appreciate the help.

Similar Threads

  1. Order of Bean definitions matters?
    By cfuser in forum Container
    Replies: 2
    Last Post: Oct 21st, 2005, 10:29 AM
  2. Spring container fails with no exception
    By naor in forum Container
    Replies: 9
    Last Post: Oct 1st, 2005, 03:39 PM
  3. EHCaching Hibernate
    By dencamel in forum Data
    Replies: 3
    Last Post: Sep 6th, 2005, 09:03 PM
  4. PerformanceMonitorInterceptor
    By tnist in forum AOP
    Replies: 3
    Last Post: Aug 24th, 2005, 01:39 PM
  5. Transaction Management
    By caverns in forum Data
    Replies: 3
    Last Post: Mar 8th, 2005, 06:38 AM

Posting Permissions

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