Results 1 to 2 of 2

Thread: Is it possible to enable/disable the Spring AOP around advice call dynamically ?

Hybrid View

  1. #1
    Join Date
    Jan 2012
    Posts
    4

    Default Is it possible to enable/disable the Spring AOP around advice call dynamically ?

    Hi all,
    I have written a Spring AOP around advice method call to calculate the method call time. Is is possible to enable or disable those call dynamically without changing any spring configuration.
    I don't want to use this around Advice all the time in production, whenever required then only i would like to use it. So that in production server without restarting the server i can enable or disable the aroundAdvice Spring AOP call for a particular method.

    regards
    Sri

  2. #2
    Join Date
    Mar 2007
    Posts
    128

    Default

    I don't think so.

    You could probably put something in your advice to check periodically for a value in a table or if a file exists in a directory or something like that to turn on/off the calculating the time.

    That's not the most elaborate solution - others may have better.

Tags for this Thread

Posting Permissions

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