From: <kab...@jb...> - 2005-08-17 10:23:45
|
Hi Tomasz, The problem is your pointcut expression <bind pointcut="execution(void @pat.root->getObjectByOID(java.lang.Long))"> | <advice aspect="org.nthx.pat.PersistableAspect" name="getObjectByOID"/> | </bind> A bit of digging reveals that Persistable.getObjectByOID() returns Identifiable, so the pointcut is never matched, meaning interception does not take place, which causes the recursion. If I change the pointcut to <bind pointcut="execution(org.nthx.pat.Identifiable @pat.root->getObjectByOID(java.lang.Long))"> | <advice aspect="org.nthx.pat.PersistableAspect" name="getObjectByOID"/> | </bind> it is fine. Cheers, Kabir View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3890346#3890346 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3890346 |