Enlightensoft's Blog

Helping in your each step

  • Categories

  • Authors

  • Advertisements

Logging Using Spring AOP 1.2

Posted by Pankil Patel on June 9, 2010

Step 1:

Add three new class as described in Logging Using Spring AOP 2.0 / 3.0 just changes are, you need to implement interfaces ThrowsAdvice, MethodBeforeAdvice, AfterReturningAdvice respactively each for each class.

Step 2:

Add entry of these three bean and “adviceList” bean for logging into your applicationContext.xml as like below:

Now you need to add property “<property name=”adviceList” ref=”adviceList”/>” into your each Service bean definition of applicationContext.xml


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: