Announcement Announcement Module
Collapse
No announcement yet.
Custom logging Using Spring AOP Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Custom logging Using Spring AOP

    Hi,
    I am new to springs.I have my own cutomized logging utility.I am trying to use this logging for my simple java program,which doesnt involve any interfaces.
    I have written simple logging interceptor class, where i have done implementation for MethodBeforeAdvice, AfterReturningAdvice and ThrowsAdvice.
    I have created the instance of my customized logger object in my simple java program.So whenever before any method gets executed,after method execution or in case of any exceptions, i need my implementations to be executed.
    I have tried achieving this,if i use interfaces in my simple java application...by using ProxyFactoryBean and adding logging as interceptor.
    How i achieve the same thing for any non-interfaces??????

  • #2
    The reference has a section about ProxyFactoryBean which also mentions proxying interfaces vs. proxying classes.

    Joerg

    Comment


    • #3
      Thnk U Jorg !!! Its working now !!

      Thank u so much for ur reference...After going through that Proxying classes...Got the solution....Its working fine now
      I configured the Spring to use CGLIB proxying and its working fine

      Comment

      Working...
      X