-
1. Re: Another test that not execute correctly...
eyp Jul 7, 2004 6:15 AM (in response to eyp)Sorry I forgot to specify my environment:
J2SDK 1.4.2_04, JbossAOP 1.0 beta3. -
2. Re: Another test that not execute correctly...
eyp Jul 7, 2004 6:21 AM (in response to eyp)If I change jboss-aop.xml to
<?xml version="1.0" encoding="UTF-8"?>
< aop>
< bind pointcut="execution(public * es.pfc.test.TestAOP->*(..))">
< interceptor class="es.pfc.test.aop.MethodAuthorizationInterceptor"/>
< /bind>
< /aop>
The sample works fine, but I don't know why? -
3. Re: Another test that not execute correctly...
kabirkhan Jul 7, 2004 6:34 AM (in response to eyp)You must specify the fully qualified name of the class, an $instanceof{} expression or a $typedef{} expression.
I'm afraid I don't know if your problem is a bug or the expected behaviour. -
4. Re: Another test that not execute correctly...
eyp Jul 7, 2004 6:52 AM (in response to eyp)Sorry, I don't understand you. I'm specifying the fully qualified name of the class:
bind pointcut=" execution(public * es.pfc.test.TestAOP->*(..))
but when I use wildcards it doesn't work
bind pointcut=" execution(public * es.pfc.test.*->*(..)) -
5. Re: Another test that not execute correctly...
kabirkhan Jul 7, 2004 7:00 AM (in response to eyp)I was just stating what you already found out :-) I _think_ you must specify the full name of the class.
If the error you get using wildcards is by design or a bug I don't know... -
6. Re: Another test that not execute correctly...
eyp Jul 7, 2004 7:03 AM (in response to eyp)Hehe, sorry, I need to improve my english :)
-
7. Re: Another test that not execute correctly...
bill.burke Jul 12, 2004 4:42 PM (in response to eyp)You are getting the error because the Interceptor is in the same package expression as the class you are trying to intercept. Thus, you have an infinite loop.
Put your interceptors in another package that doesn't match your wildcard.
Bill