This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

unable to call AOP method

 
Rahul Shivsharan
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Performer.java,



Audience.java



AudienceAdvice.java



bean-cfg-Two.xml


MainPractise24.java



What i am expecting is,
whenever i call perform() method of Performer class, the takeSeats() and turnOffCellPhones() method of Audience class should be called first,
and after execution of method perform(), applause() method of Audience class should be called

but no AOP is happening, the perform method is getting called straight,


even if i changed the eml file to

 
Rahul Shivsharan
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guy's please help me out on this,

i know this question is discussed in this forum,
but that didn't helped me out

Please reply back
 
Rishi Shehrawat
Ranch Hand
Posts: 218
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As per provided files you are using Spring 2.0 configuration, you should Spring 3.0. Please download source code for Spring In Action Third edition & refer to the springidol-annotation project.

http://www.manning.com/walls4/sia3-code.zip

 
Rahul Shivsharan
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i got it,
one more configuration was remaining in the xml,
my edited xml file



A proxy creation is also required,

now the above example will run fine with Spring 2.0 config

 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We still recommend that you use the latest Spring version. That way you did it is about 5 years old. Today it is so much easier.

Mark
 
Rahul Shivsharan
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so mark should i start reading "Spring 3.0 In Action" ?
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rahul Shivsharan wrote:so mark should i start reading "Spring 3.0 In Action" ?


It is a great book to help learn Spring and the latest version.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic