This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Other Application Frameworks and the fly likes Spring Framework AOP|Adviced method call inside First Advice results in execution of second advice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Spring Framework AOP|Adviced method call inside First Advice results in execution of second advice" Watch "Spring Framework AOP|Adviced method call inside First Advice results in execution of second advice" New topic
Author

Spring Framework AOP|Adviced method call inside First Advice results in execution of second advice

atul kumar
Greenhorn

Joined: Nov 14, 2008
Posts: 7
Advice method --getMarket(...)

Advices and their order...---

@Order(1)
public class DDSAdvice {....getMarket())

@Order(2)
public class LimitAdvice {

@Order(3)
public class EnergyAdvice {


I am calling Advice method --getMarket(...) inside DDSAdvice
which results in execution of LimitAdvice and EnergyAdvice as well..

any idea how to avoid it...
one way i have tried is use ---BaseDAO+.getMarket(..) && ! within(DDSAdvice)

but it doesnt work.

order of execution is DDSAdvice LimitAdvice EnergyAdvice LimitAdvice EnergyAdvice

any thoughts..Please advise
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Spring Framework AOP|Adviced method call inside First Advice results in execution of second advice
 
It's not a secret anymore!