• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Simple AOP not working

 
Cory Max
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to get a simple aop app to work but it seems as if spring is ignoring the aop part of my spring-config file.

Here is what I have:
1) A simple interface and implementing class
2) An pojo aspect class
3) A class to test it
4) My spring config.xml




I get output:

Testing 123
java.lang.Exception: Thrown exception at com.macdon.aop.logging.test.ServiceImpl.doException(ServiceImpl.java:17)
at com.macdon.aop.logging.test.TestLogger.main(TestLogger.java:19)

But no aop behavior.

Can someone please help?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic