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

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Spring and AOP" Watch "Spring and AOP" New topic

Spring and AOP

Karthik Guru
Ranch Hand

Joined: Mar 06, 2001
Posts: 1209
How does Spring support for AOP differ from say AspectJ
Matt Raible
Ranch Hand

Joined: Jan 11, 2001
Posts: 114
The main differences are 1) it doesn't require its own compiler and 2) it doesn't allow you field-level access.

Spring's AOP Framework is designed to do 80% of what most developers will need. For the other 20%, you can integrate AspectJ with Spring or even AspectWerkz.

Matt<br /> <br />Author: <a href="" target="_blank" rel="nofollow">Spring Live</a> and <a href="" target="_blank" rel="nofollow">Pro JSP</a><br />Weblogs: <a href="" target="_blank" rel="nofollow">Raible Designs</a> <a href="" target="_blank" rel="nofollow">Spring Live Blog</a>
Alexandru Popescu
Ranch Hand

Joined: Jul 12, 2004
Posts: 995
in the hurry I have replyied to this in another topic already. I feel that the AOP solutions offered by AspectJ and AspectWerkz (and I want to see JBossAOP) are more powerfull than Spring solution. They have gone a long way to arrive where they are now and they brought into scene very nice and clean solutions.


blog -
Alexandru Popescu
Ranch Hand

Joined: Jul 12, 2004
Posts: 995
here is my other answer.

I agree. Here's the link:
subject: Spring and AOP
Similar Threads
Spring AOP
Spring Transaction by AOP
Spring AOP / Spring AOP + AspectJ ?
AOP module