Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Can't get Spring AOP to work in tomcat

 
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all-
Trying to learn Spring AOP and I can't get the simplest example to work. I'm using eclipse 3.2.2 with the Tomcat Plugin (Tomcat v 6) and Spring v 2.0.4 (with a struts app). I also tried it in Native Tomcat with the same (i.e. no) results.

Here's a snippet from my Spring-config:

As you can see I'm trying to intercept any public method. I've tried other flavors of pointcut expressions and get nothing.

<aop:config>
<aop:aspect ref="LoggingAspect">
<aop ointcut id="myCutLogging"
expression="execution(public * *(..))"/>
<aop:around pointcut-ref="myCutLogging" method="log"/>
</aop:aspect>
</aop:config>
[ May 02, 2007: Message edited by: Max Tomlinson ]
 
We must storm this mad man's lab and destroy his villanous bomb! Are you with me tiny ad?
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic