File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Application Frameworks and the fly likes Simple AOP not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Simple AOP not working" Watch "Simple AOP not working" New topic
Author

Simple AOP not working

Cory Max
Ranch Hand

Joined: Jul 20, 2005
Posts: 83
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?


There are only 10 types of people in this world... Those who understand binary and those who don't.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Simple AOP not working