I had tried a workaround in my current company project that "SEEMS" to work in my case but I am not sure that it works or not in other cases. My workaround is to create 2 application context xml files. In context xml file 1, I have defined all the domain objects and groovy scripts. For example: applicaionContext1.xml
*big snip*
Please note that "script-scope" attribute only work if apply Mark patch to spring.
The GroovyPersonService.groovy file contains all the methods which are pointcut by AspectJ and it implements a Personservice interface.
In the context xml file 2, I have ONLY defined the aop pointcut and nothing else. For example: applicaionContext2.xml
...
<aop:config>
<aop

ointcut id="PersonServiceOperation" expression="execution(*
org.test.PersonService.*(..))"/>
<aop:advisor advice-ref="txAdvice" pointcut-ref="PersonServiceOperation"/>
</aop:config>
...
In my java program,
...
*snip*
...
I don't know whether it can help Janos to solve his problem. I can only say that it works in my project. Please give it a try and If there is any problem, please let me know so that I can avoid it in my project. Thanks Mark and Janos for their help.