<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: AOP &#8211; Spring &#8211; Intercepting method calls using annotations</title>
	<atom:link href="http://raulraja.com/2009/06/13/aop-spring-intercepting-method-calls-using-annotations/feed/" rel="self" type="application/rss+xml" />
	<link>http://raulraja.com/2009/06/13/aop-spring-intercepting-method-calls-using-annotations/</link>
	<description>About software dev and more</description>
	<lastBuildDate>Fri, 27 Apr 2012 10:07:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Diego Alvarez</title>
		<link>http://raulraja.com/2009/06/13/aop-spring-intercepting-method-calls-using-annotations/comment-page-1/#comment-484</link>
		<dc:creator>Diego Alvarez</dc:creator>
		<pubDate>Sat, 19 May 2012 14:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://raulraja.com/?p=123#comment-484</guid>
		<description>Thanks dude! That will be helpful!</description>
		<content:encoded><![CDATA[<p>Thanks dude! That will be helpful!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ajeya</title>
		<link>http://raulraja.com/2009/06/13/aop-spring-intercepting-method-calls-using-annotations/comment-page-1/#comment-482</link>
		<dc:creator>Ajeya</dc:creator>
		<pubDate>Sat, 19 May 2012 21:29:00 +0000</pubDate>
		<guid isPermaLink="false">http://raulraja.com/?p=123#comment-482</guid>
		<description>Thanks Raju... U r a day saver...</description>
		<content:encoded><![CDATA[<p>Thanks Raju&#8230; U r a day saver&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: couzteau</title>
		<link>http://raulraja.com/2009/06/13/aop-spring-intercepting-method-calls-using-annotations/comment-page-1/#comment-479</link>
		<dc:creator>couzteau</dc:creator>
		<pubDate>Sat, 19 May 2012 18:09:00 +0000</pubDate>
		<guid isPermaLink="false">http://raulraja.com/?p=123#comment-479</guid>
		<description>Great example. I love examples that work.</description>
		<content:encoded><![CDATA[<p>Great example. I love examples that work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Natan Cox</title>
		<link>http://raulraja.com/2009/06/13/aop-spring-intercepting-method-calls-using-annotations/comment-page-1/#comment-56</link>
		<dc:creator>Natan Cox</dc:creator>
		<pubDate>Sat, 19 May 2012 23:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://raulraja.com/?p=123#comment-56</guid>
		<description>Hi Raul,

That indeed seems to be the problem. I have not looked at it since (too busy) but it is definitely something worth looking at.

regards, N</description>
		<content:encoded><![CDATA[<p>Hi Raul,</p>
<p>That indeed seems to be the problem. I have not looked at it since (too busy) but it is definitely something worth looking at.</p>
<p>regards, N</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raul Raja</title>
		<link>http://raulraja.com/2009/06/13/aop-spring-intercepting-method-calls-using-annotations/comment-page-1/#comment-51</link>
		<dc:creator>Raul Raja</dc:creator>
		<pubDate>Sat, 19 May 2012 19:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://raulraja.com/?p=123#comment-51</guid>
		<description>Hi Natan,

I have not looked very deep into this issue but it looks like it might be related to the same problem as described here: http://olafsblog.sysbsb.de/?p=35
The first response links to the spring docs where it is described how it can be solved using aspectj.

The docs show how you can create aspectj aspects with spring and use the @Annotation in aspect bean with a @Aspect to intercept methods that contain a given annotation.

The docs also show how it is compatible with @Configurable.

http://static.springsource.org/spring/docs/2.5.x/reference/aop.html#aop-using-aspectj

Let me know if you can&#039;t figure out and I will look further into it as it is interesting to me as well. If you do find it and you feel like sharing feel free to post it as comment.

Thanks</description>
		<content:encoded><![CDATA[<p>Hi Natan,</p>
<p>I have not looked very deep into this issue but it looks like it might be related to the same problem as described here: <a href="http://olafsblog.sysbsb.de/?p=35" rel="nofollow">http://olafsblog.sysbsb.de/?p=35</a><br />
The first response links to the spring docs where it is described how it can be solved using aspectj.</p>
<p>The docs show how you can create aspectj aspects with spring and use the @Annotation in aspect bean with a @Aspect to intercept methods that contain a given annotation.</p>
<p>The docs also show how it is compatible with @Configurable.</p>
<p><a href="http://static.springsource.org/spring/docs/2.5.x/reference/aop.html#aop-using-aspectj" rel="nofollow">http://static.springsource.org/spring/docs/2.5.x/reference/aop.html#aop-using-aspectj</a></p>
<p>Let me know if you can&#8217;t figure out and I will look further into it as it is interesting to me as well. If you do find it and you feel like sharing feel free to post it as comment.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Natan Cox</title>
		<link>http://raulraja.com/2009/06/13/aop-spring-intercepting-method-calls-using-annotations/comment-page-1/#comment-48</link>
		<dc:creator>Natan Cox</dc:creator>
		<pubDate>Sat, 19 May 2012 02:26:00 +0000</pubDate>
		<guid isPermaLink="false">http://raulraja.com/?p=123#comment-48</guid>
		<description>Nice. I&#039;m trying something similar in my production code

  

  
    
      
      
    
  

And got
java.lang.IllegalStateException: Post-processor tried to replace bean instance of type [...] with (proxy) object of type [$Proxy78] - not supported for aspect-configured classes!

Seems that your solution does not really work to well with code that uses the Spring @Configurable annotation. Any ideas how to get round that?

@Configurable 
Xyz {
    @Autowired(required = true)
    private OtherService otherService;

    @Timer
     public void timedMethod() {
     }
}</description>
		<content:encoded><![CDATA[<p>Nice. I&#8217;m trying something similar in my production code</p>
<p>And got<br />
java.lang.IllegalStateException: Post-processor tried to replace bean instance of type [...] with (proxy) object of type [$Proxy78] &#8211; not supported for aspect-configured classes!</p>
<p>Seems that your solution does not really work to well with code that uses the Spring @Configurable annotation. Any ideas how to get round that?</p>
<p>@Configurable<br />
Xyz {<br />
    @Autowired(required = true)<br />
    private OtherService otherService;</p>
<p>    @Timer<br />
     public void timedMethod() {<br />
     }<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

