[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Multiple pointcut expressions and advice bindings for sa

2004-08-06 Thread rkadayam
Well, not sure if what I'm doing qualifies as hot-deploy or not, but I have a console that acts as an interface to dynamically at run-time attach and detach advices to the advice stacks. And in turn the advice stacks updates every AdviceBinding that it references internally. My concern is more

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Multiple pointcut expressions and advice bindings for sa

2004-08-06 Thread rkadayam
So I just did a small experiment and it seems like in whatever order the advice bindings were created, that was the order in which the advices/interceptors were ordered. Meaning if I attached the advice to SpecificMethod pointcut binding first and then AllMethods pointcut binding next. Then

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Multiple pointcut expressions and advice bindings for sa

2004-08-05 Thread Bill Burke
You can hotdeploy a pointcut definition, but this does not cause bindings to be reapplied. Am I making sense? So, if you modify AllMethods at runtime and redeploy it, bindings will not be recalculated. Currently, the code isn't smart enough to know if the binding references a named

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Multiple pointcut expressions and advice bindings for sa

2004-08-03 Thread kabkhan
Taken a quick look at the code for the above, and the assumption above regarding ordering of interceptors seems safe. Now, in response to your actual question :-) The global/specific stuff is fine. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3843975#3843975

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Multiple pointcut expressions and advice bindings for sa

2004-08-02 Thread rkadayam
Sorry, for some reason my xml lines got stripped off, the aop xml looks like | pointcut name=Method1 expr=execution(* test.TestServiceBean-method1(java.lang.String)) / | pointcut name=AllMethods expr=execution(* test.TestServiceBean-*(..)) / | | bind pointcut=Method1 | interceptor

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Multiple pointcut expressions and advice bindings for sa

2004-08-02 Thread kabkhan
In my experience the bindings are applied top-down, i.e. in your example Interceptor1 should be applied before StackOne. I'm not 100% sure if this is documented behaviour though View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3843939#3843939 Reply to the post