• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

unable to call AOP method

 
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
 
Ranch Hand
Posts: 218
Hibernate Spring Java
  • 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

 
ranger
Posts: 17346
11
Mac IntelliJ IDE 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
Posts: 17346
11
Mac IntelliJ IDE 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
 
    Bookmark Topic Watch Topic
  • New Topic