You can get the interceptor by getting the AOP instance advisor and calling getInterceptors() the removeInterceptor(), like so:
| InstanceAdvisor advisor = ((Advised) result)._getInstanceAdvisor(); | for (Interceptor interceptor: advisor.getInterceptors()) | if (interceptor instanceof CacheFieldInterceptor) | advisor.removeInterceptor(interceptor.getName()); | Have a look at the source to AdvisedPojoHandler.remove() to see how it is done in POJO Cache: http://anonsvn.jboss.org/repos/jbosscache/pojo/trunk/src/main/java/org/jboss/cache/pojo/impl/AdvisedPojoHandler.java -Jason View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089537#4089537 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089537 _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
