It's not a secret anymore!*
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
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Advice not getting executed" Watch "Advice not getting executed" New topic
Forums: Spring Aspect Oriented Programming
Author

Advice not getting executed

pramod talekar
Ranch Hand

Joined: Apr 26, 2010
Posts: 316

Hello,
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.

Thanks,
Pramod
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

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.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Advice not getting executed
 
Similar Threads
Problem with Spring AOP+AspectJ
Preauthentication problem
Page redirect not working
Getting method name on spring AOP @Before
transaction rollbacks, but a record is inserted?