Announcement Announcement Module
Collapse
No announcement yet.
Is it possible to enable/disable the Spring AOP around advice call dynamically ? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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.

    Comment

    Working...
    X