File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Spring and the fly likes Advice not getting executed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Advice not getting executed" Watch "Advice not getting executed" New topic
Forums: Spring Aspect Oriented Programming

Advice not getting executed

pramod talekar
Ranch Hand

Joined: Apr 26, 2010
Posts: 323

I'm trying to execute an advice using aop.

These are my classes :
MyAdvice classMyBean classMyDependency class
servlet-context.xmlAopNamespaceExample (Test class)The output is
Eclipse also displays the pointers that MyDependency class has been advised by the simpleBeforeAdvice method.

Please advise.

Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

Have you tried to debug your code through the debugger and set a break point at the line calling the method in the main() method. In the first line of the Advice method, and on the first line of the real class target. And step through and see where things land.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: Advice not getting executed
It's not a secret anymore!