Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Can't get Spring AOP to work in tomcat

Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:aspect ref="LoggingAspect">
<aop ointcut id="myCutLogging"
expression="execution(public * *(..))"/>
<aop:around pointcut-ref="myCutLogging" method="log"/>
[ May 02, 2007: Message edited by: Max Tomlinson ]
Self destruct mode activated. Instructions for deactivation encoded in this tiny ad.
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic