This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 21 Developer (Exam 1Z0-830) Java SE 17 Developer (Exam 1Z0-829) Programmer’s Guide and have Khalid Mughal and Vasily Strelnikov on-line!
See this thread for details.
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

unable to call AOP method

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
so mark should i start reading "Spring 3.0 In Action" ?
 
Mark Spritzler
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic