Announcement Announcement Module
Collapse
No announcement yet.
Changing pointcut expression at runtime with JMX Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Changing pointcut expression at runtime with JMX

    I used AOP support for audit logging in my application. Username, timestamp, classname, method name and method parameters (as XML) are logged by an aspect configured by xml file. (schema-based configuration).

    But this logging service effects overall system performance. I just want to be able to change the pointcut expression at runtime by JMX. Do i have to write my own customized Method Interceptor?

    Any help?

    The configuration:
    Code:
    	<aop:config>
    		<aop:aspect ref="tracerAspect">
    			<aop:around pointcut="execution(* *..*Service+.*(..))"
    				method="trace" />
    		</aop:aspect>
    	</aop:config>
    change this: execution(* *..*Service+.*(..))
Working...
X