<?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: Annotation-Driven Dependency Injection in Spring 2.1</title>
	<atom:link href="http://blog.springsource.org/2007/05/14/annotation-driven-dependency-injection-in-spring-21/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.springsource.org/2007/05/14/annotation-driven-dependency-injection-in-spring-21/</link>
	<description>The voice of SpringSource</description>
	<lastBuildDate>Wed, 08 Feb 2012 17:31:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<item>
		<title>By: test</title>
		<link>http://blog.springsource.org/2007/05/14/annotation-driven-dependency-injection-in-spring-21/comment-page-2/#comment-196217</link>
		<dc:creator>test</dc:creator>
		<pubDate>Fri, 24 Jun 2011 14:44:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2007/05/14/annotation-driven-dependency-injection-in-spring-21/#comment-196217</guid>
		<description>nice</description>
		<content:encoded><![CDATA[<p>nice</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Annotation-Driven Dependency Injection in Spring 2.1 &#124; Ringo&#39;s Blog</title>
		<link>http://blog.springsource.org/2007/05/14/annotation-driven-dependency-injection-in-spring-21/comment-page-2/#comment-174338</link>
		<dc:creator>Annotation-Driven Dependency Injection in Spring 2.1 &#124; Ringo&#39;s Blog</dc:creator>
		<pubDate>Sat, 17 Jul 2010 15:05:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2007/05/14/annotation-driven-dependency-injection-in-spring-21/#comment-174338</guid>
		<description>[...] Spring 2.0 introduced annotation support and annotation-aware configuration options that can be leveraged by Spring users who are developing with Java 5 (or later versions)&#8230; [Read More] [...]</description>
		<content:encoded><![CDATA[<p>[...] Spring 2.0 introduced annotation support and annotation-aware configuration options that can be leveraged by Spring users who are developing with Java 5 (or later versions)&#8230; [Read More] [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dav</title>
		<link>http://blog.springsource.org/2007/05/14/annotation-driven-dependency-injection-in-spring-21/comment-page-2/#comment-171015</link>
		<dc:creator>Dav</dc:creator>
		<pubDate>Fri, 15 Jan 2010 09:51:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2007/05/14/annotation-driven-dependency-injection-in-spring-21/#comment-171015</guid>
		<description>Nice article.

Using spring-framework-2.5.6.SEC01-with-dependencies.

I found that @Component was also needed in the declaration of ServiceInvocationLogger to get the aspect stuff to work.

I.e.

@Component
@Aspect
public class ServiceInvocationLogger {
...</description>
		<content:encoded><![CDATA[<p>Nice article.</p>
<p>Using spring-framework-2.5.6.SEC01-with-dependencies.</p>
<p>I found that @Component was also needed in the declaration of ServiceInvocationLogger to get the aspect stuff to work.</p>
<p>I.e.</p>
<p>@Component<br />
@Aspect<br />
public class ServiceInvocationLogger {<br />
&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ravi</title>
		<link>http://blog.springsource.org/2007/05/14/annotation-driven-dependency-injection-in-spring-21/comment-page-2/#comment-166789</link>
		<dc:creator>Ravi</dc:creator>
		<pubDate>Mon, 18 May 2009 22:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2007/05/14/annotation-driven-dependency-injection-in-spring-21/#comment-166789</guid>
		<description>Hi Mark,

Thanks for a great article!

&gt;&gt; I am including all of the code and configuration in a single &quot;blog&quot; package.

Can you please provide access to the sample code? I am trying to build the sample but having some issues.

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi Mark,</p>
<p>Thanks for a great article!</p>
<p>&gt;&gt; I am including all of the code and configuration in a single &#034;blog&#034; package.</p>
<p>Can you please provide access to the sample code? I am trying to build the sample but having some issues.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Overview of Dependency Injection in Symfony</title>
		<link>http://blog.springsource.org/2007/05/14/annotation-driven-dependency-injection-in-spring-21/comment-page-2/#comment-126866</link>
		<dc:creator>Overview of Dependency Injection in Symfony</dc:creator>
		<pubDate>Wed, 29 Oct 2008 11:34:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2007/05/14/annotation-driven-dependency-injection-in-spring-21/#comment-126866</guid>
		<description>[...] Injection is something that is quite prominent in Java frameworks, such as Spring. Martin Fowler covers the Dependency Injection pattern in quite some detail if you are [...]</description>
		<content:encoded><![CDATA[<p>[...] Injection is something that is quite prominent in Java frameworks, such as Spring. Martin Fowler covers the Dependency Injection pattern in quite some detail if you are [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SpringSource Team Blog &#187; What&#39;s New in Spring Web Services 1.5?</title>
		<link>http://blog.springsource.org/2007/05/14/annotation-driven-dependency-injection-in-spring-21/comment-page-2/#comment-101725</link>
		<dc:creator>SpringSource Team Blog &#187; What&#39;s New in Spring Web Services 1.5?</dc:creator>
		<pubDate>Sat, 29 Mar 2008 00:38:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2007/05/14/annotation-driven-dependency-injection-in-spring-21/#comment-101725</guid>
		<description>[...] Another neat new feature is that @Endpoints are now annotated with @Component, so if you are using Spring 2.5 component scanning, your endpoints are picked up automatically, and require no XML configuration! For configuration of Spring-WS components, we now offer two new namespaces, to configure OXM marshallers and other common constructs. For example, here is the configuration of a JAXB2 marshaller:  &lt;oxm:jaxb2-marshaller id=&quot;marshaller&quot; contextPath=&quot;org.springframework.ws.samples.airline.schema&quot;/&gt; [...]</description>
		<content:encoded><![CDATA[<p>[...] Another neat new feature is that @Endpoints are now annotated with @Component, so if you are using Spring 2.5 component scanning, your endpoints are picked up automatically, and require no XML configuration! For configuration of Spring-WS components, we now offer two new namespaces, to configure OXM marshallers and other common constructs. For example, here is the configuration of a JAXB2 marshaller:  &lt;oxm:jaxb2-marshaller id=&#34;marshaller&#34; contextPath=&#34;org.springframework.ws.samples.airline.schema&#34;/&gt; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: df fdsfsdf</title>
		<link>http://blog.springsource.org/2007/05/14/annotation-driven-dependency-injection-in-spring-21/comment-page-2/#comment-100853</link>
		<dc:creator>df fdsfsdf</dc:creator>
		<pubDate>Mon, 17 Mar 2008 10:13:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2007/05/14/annotation-driven-dependency-injection-in-spring-21/#comment-100853</guid>
		<description>dsfds fds</description>
		<content:encoded><![CDATA[<p>dsfds fds</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ferry</title>
		<link>http://blog.springsource.org/2007/05/14/annotation-driven-dependency-injection-in-spring-21/comment-page-2/#comment-100344</link>
		<dc:creator>Ferry</dc:creator>
		<pubDate>Mon, 10 Mar 2008 09:58:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2007/05/14/annotation-driven-dependency-injection-in-spring-21/#comment-100344</guid>
		<description>Hi Mark,
The cost of @Transactional seems very high. If I have a client that call a service that is annotated with @Transactional, it will at least required 300ms (this is relative) just to called the very simple method.
While I don&#039;t really need a transactional method, but the problem is that I will get the &quot;Session is closed&quot; exception whenever I called something like this :
em.read(); followed by em.merge(). It seems that without the @Transactional, I&#039;m not able to use the em(EntityManager) more than once in one conversation.

What is the best practice for this issue ? Can I avoid the @Transactional ? It has much better performance if I put the @Transactional at the caller side, but this is not I want. 

Thanks, and sorry if this is not the right place to ask :p</description>
		<content:encoded><![CDATA[<p>Hi Mark,<br />
The cost of @Transactional seems very high. If I have a client that call a service that is annotated with @Transactional, it will at least required 300ms (this is relative) just to called the very simple method.<br />
While I don&#039;t really need a transactional method, but the problem is that I will get the &#034;Session is closed&#034; exception whenever I called something like this :<br />
em.read(); followed by em.merge(). It seems that without the @Transactional, I&#039;m not able to use the em(EntityManager) more than once in one conversation.</p>
<p>What is the best practice for this issue ? Can I avoid the @Transactional ? It has much better performance if I put the @Transactional at the caller side, but this is not I want. </p>
<p>Thanks, and sorry if this is not the right place to ask :p</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: It&#8217;s Only Software &#187; Quick Tip: Spring 2.5 makes use of PropertyPlaceholderConfigurer simpler</title>
		<link>http://blog.springsource.org/2007/05/14/annotation-driven-dependency-injection-in-spring-21/comment-page-2/#comment-64701</link>
		<dc:creator>It&#8217;s Only Software &#187; Quick Tip: Spring 2.5 makes use of PropertyPlaceholderConfigurer simpler</dc:creator>
		<pubDate>Wed, 14 Nov 2007 01:09:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2007/05/14/annotation-driven-dependency-injection-in-spring-21/#comment-64701</guid>
		<description>[...] The nit-picky will note that you will need to add in the spring-context-2.5.xsd schema reference, however you may be using that already anyway in Spring 2.5 to take advantage of some of the Java-based annotation functionality. [...]</description>
		<content:encoded><![CDATA[<p>[...] The nit-picky will note that you will need to add in the spring-context-2.5.xsd schema reference, however you may be using that already anyway in Spring 2.5 to take advantage of some of the Java-based annotation functionality. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olia</title>
		<link>http://blog.springsource.org/2007/05/14/annotation-driven-dependency-injection-in-spring-21/comment-page-2/#comment-51931</link>
		<dc:creator>Olia</dc:creator>
		<pubDate>Wed, 26 Sep 2007 19:41:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2007/05/14/annotation-driven-dependency-injection-in-spring-21/#comment-51931</guid>
		<description>Hi,
should annotation-based AspectJ work with Java6?  I keep getting an error about it, and I am running with Java6:


     [java] org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.aop.aspectj.AspectJPointcutAdvisor]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: error the @annotation pointcut expression is only supported at Java 5 compliance level or above
     [java] Caused by: 
     [java] java.lang.IllegalArgumentException: error the @annotation pointcut expression is only supported at Java 5 compliance level or above
     [java] 	at org.aspectj.weaver.tools.PointcutParser.parsePointcutExpression(PointcutParser.java:315)
     [java] 	at org.springframework.aop.aspectj.AspectJExpressionPointcut.buildPointcutExpression(AspectJExpressionPointcut.java:189)
     [java] 	at org.springframework.aop.aspectj.AspectJExpressionPointcut.checkReadyToMatch(AspectJExpressionPointcut.java:176)
     [java] 	at org.springframework.aop.aspectj.AspectJExpressionPointcut.getMethodMatcher(AspectJExpressionPointcut.java:162)
     [java] 	at org.springframework.aop.aspectj.AbstractAspectJAdvice.buildSafePointcut(AbstractAspectJAdvice.java:181)
     [java] 	at org.springframework.aop.aspectj.AspectJPointcutAdvisor.(AspectJPointcutAdvisor.java:51)
     [java] 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     [java] 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
     [java] 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
     [java] 	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
     [java] 	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:85)
etc..</description>
		<content:encoded><![CDATA[<p>Hi,<br />
should annotation-based AspectJ work with Java6?  I keep getting an error about it, and I am running with Java6:</p>
<p>      org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.aop.aspectj.AspectJPointcutAdvisor]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: error the @annotation pointcut expression is only supported at Java 5 compliance level or above<br />
      Caused by:<br />
      java.lang.IllegalArgumentException: error the @annotation pointcut expression is only supported at Java 5 compliance level or above<br />
      	at org.aspectj.weaver.tools.PointcutParser.parsePointcutExpression(PointcutParser.java:315)<br />
      	at org.springframework.aop.aspectj.AspectJExpressionPointcut.buildPointcutExpression(AspectJExpressionPointcut.java:189)<br />
      	at org.springframework.aop.aspectj.AspectJExpressionPointcut.checkReadyToMatch(AspectJExpressionPointcut.java:176)<br />
      	at org.springframework.aop.aspectj.AspectJExpressionPointcut.getMethodMatcher(AspectJExpressionPointcut.java:162)<br />
      	at org.springframework.aop.aspectj.AbstractAspectJAdvice.buildSafePointcut(AbstractAspectJAdvice.java:181)<br />
      	at org.springframework.aop.aspectj.AspectJPointcutAdvisor.(AspectJPointcutAdvisor.java:51)<br />
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)<br />
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)<br />
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)<br />
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)<br />
      	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:85)<br />
etc..</p>
]]></content:encoded>
	</item>
</channel>
</rss>

