-
Feb 7th, 2013, 03:09 PM
#1
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
-
Feb 7th, 2013, 03:34 PM
#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.
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
-
Forum Rules