<?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: Getting Started with CDI part 2 &#8211; Injection</title>
	<atom:link href="http://www.andygibson.net/blog/2009/12/22/getting-started-with-cdi-part-2-injection/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.andygibson.net/blog/tutorial/getting-started-with-cdi-part-2-injection/</link>
	<description>Open Source Projects &#38; Technical Writings</description>
	<lastBuildDate>Fri, 30 Jul 2010 20:20:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Andy Gibson</title>
		<link>http://www.andygibson.net/blog/tutorial/getting-started-with-cdi-part-2-injection/comment-page-1/#comment-14497</link>
		<dc:creator>Andy Gibson</dc:creator>
		<pubDate>Fri, 16 Jul 2010 22:55:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.andygibson.net/blog/?p=706#comment-14497</guid>
		<description>You might also want to try out a set of Maven Archetypes I just released which in addition contains the usual starter projects, also has a project that implements a CRUD demo with just out-of-the-box Java EE 6. 

You can find it at http://www.fluttercode.com/projects/knappsack/</description>
		<content:encoded><![CDATA[<p>You might also want to try out a set of Maven Archetypes I just released which in addition contains the usual starter projects, also has a project that implements a CRUD demo with just out-of-the-box Java EE 6. </p>
<p>You can find it at <a href="http://www.fluttercode.com/projects/knappsack/" rel="nofollow">http://www.fluttercode.com/projects/knappsack/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Gibson</title>
		<link>http://www.andygibson.net/blog/tutorial/getting-started-with-cdi-part-2-injection/comment-page-1/#comment-14496</link>
		<dc:creator>Andy Gibson</dc:creator>
		<pubDate>Fri, 16 Jul 2010 22:53:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.andygibson.net/blog/?p=706#comment-14496</guid>
		<description>Hey Herman, 

Both type and and Qualifiers are used to match beans to injection points so a qualifier is just an additional criteria in case you have beans that implement the same interface. 

For example, if you have multiple data source and inject the entity manager, you could qualify one with @WebStoreDb and the other with @DataWarehouseDb. Without a qualifier, we don&#039;t know which to use where.</description>
		<content:encoded><![CDATA[<p>Hey Herman, </p>
<p>Both type and and Qualifiers are used to match beans to injection points so a qualifier is just an additional criteria in case you have beans that implement the same interface. </p>
<p>For example, if you have multiple data source and inject the entity manager, you could qualify one with @WebStoreDb and the other with @DataWarehouseDb. Without a qualifier, we don&#8217;t know which to use where.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Herman Chung</title>
		<link>http://www.andygibson.net/blog/tutorial/getting-started-with-cdi-part-2-injection/comment-page-1/#comment-14495</link>
		<dc:creator>Herman Chung</dc:creator>
		<pubDate>Fri, 16 Jul 2010 17:08:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.andygibson.net/blog/?p=706#comment-14495</guid>
		<description>Btw, Thanks Andy for this article, it is very informative and easy to understand, i was having a hard time learning just by reading the Weld Docs</description>
		<content:encoded><![CDATA[<p>Btw, Thanks Andy for this article, it is very informative and easy to understand, i was having a hard time learning just by reading the Weld Docs</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Herman Chung</title>
		<link>http://www.andygibson.net/blog/tutorial/getting-started-with-cdi-part-2-injection/comment-page-1/#comment-14494</link>
		<dc:creator>Herman Chung</dc:creator>
		<pubDate>Fri, 16 Jul 2010 17:07:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.andygibson.net/blog/?p=706#comment-14494</guid>
		<description>Maybe I am just confused or that I am very new to CDI, so the advantage of Qualifier is that it is typesafe (can apply to interface instead of using names which only applies to implementation)..

so we basically need to create multiple qualifers (meaning multiple classes) for each implementations of the interface we might want to inject?  

This does seem kinda inconvenient..</description>
		<content:encoded><![CDATA[<p>Maybe I am just confused or that I am very new to CDI, so the advantage of Qualifier is that it is typesafe (can apply to interface instead of using names which only applies to implementation)..</p>
<p>so we basically need to create multiple qualifers (meaning multiple classes) for each implementations of the interface we might want to inject?  </p>
<p>This does seem kinda inconvenient..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Getting Started with Netbeans, JSF 2.0 and CDI part 1 &#124; FlutterCode</title>
		<link>http://www.andygibson.net/blog/tutorial/getting-started-with-cdi-part-2-injection/comment-page-1/#comment-14452</link>
		<dc:creator>Getting Started with Netbeans, JSF 2.0 and CDI part 1 &#124; FlutterCode</dc:creator>
		<pubDate>Sun, 16 May 2010 03:06:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.andygibson.net/blog/?p=706#comment-14452</guid>
		<description>[...] to view Part 2   //     Category : Uncategorized. You can follow any responses to this entry through the RSS 2.0 [...]</description>
		<content:encoded><![CDATA[<p>[...] to view Part 2   //     Category : Uncategorized. You can follow any responses to this entry through the RSS 2.0 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert, Austin, Texas</title>
		<link>http://www.andygibson.net/blog/tutorial/getting-started-with-cdi-part-2-injection/comment-page-1/#comment-14441</link>
		<dc:creator>Robert, Austin, Texas</dc:creator>
		<pubDate>Sat, 10 Apr 2010 04:51:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.andygibson.net/blog/?p=706#comment-14441</guid>
		<description>Thanks for the reply.  Nope, it is not annotated @Stateless.  Until I changed the bean to SessionScope I was copying and pasting from your examples, too.  Go figure...</description>
		<content:encoded><![CDATA[<p>Thanks for the reply.  Nope, it is not annotated @Stateless.  Until I changed the bean to SessionScope I was copying and pasting from your examples, too.  Go figure&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Gibson</title>
		<link>http://www.andygibson.net/blog/tutorial/getting-started-with-cdi-part-2-injection/comment-page-1/#comment-14440</link>
		<dc:creator>Andy Gibson</dc:creator>
		<pubDate>Fri, 09 Apr 2010 04:10:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.andygibson.net/blog/?p=706#comment-14440</guid>
		<description>Is the item processor a stateless bean? If so, take off the @Stateless annotation. There is a problem with Weld 1.0 (and maybe 1.0.1) where stateless beans were considered not proxyable which is wrong because they don&#039;t need to be proxied : 

Here&#039;s my post about it on the seam framework web site.

http://seamframework.org/Community/ProblemsWithStatelessBeansInWeldCR101CR2

You should be ok if you just remove the stateless annotation making it a non-EJB bean

Cheers,

Andy Gibson</description>
		<content:encoded><![CDATA[<p>Is the item processor a stateless bean? If so, take off the @Stateless annotation. There is a problem with Weld 1.0 (and maybe 1.0.1) where stateless beans were considered not proxyable which is wrong because they don&#8217;t need to be proxied : </p>
<p>Here&#8217;s my post about it on the seam framework web site.</p>
<p><a href="http://seamframework.org/Community/ProblemsWithStatelessBeansInWeldCR101CR2" rel="nofollow">http://seamframework.org/Community/ProblemsWithStatelessBeansInWeldCR101CR2</a></p>
<p>You should be ok if you just remove the stateless annotation making it a non-EJB bean</p>
<p>Cheers,</p>
<p>Andy Gibson</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert, Austin, Texas</title>
		<link>http://www.andygibson.net/blog/tutorial/getting-started-with-cdi-part-2-injection/comment-page-1/#comment-14438</link>
		<dc:creator>Robert, Austin, Texas</dc:creator>
		<pubDate>Thu, 08 Apr 2010 22:22:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.andygibson.net/blog/?p=706#comment-14438</guid>
		<description>... so, after making beans serializable, the passivation error no longer happens for session scoped ItemProcessor, but error &quot;eedemo.ItemProcessor is not proxyable&quot; is seen, as in the request scope case.  It just doesn&#039;t like constructor injection.</description>
		<content:encoded><![CDATA[<p>&#8230; so, after making beans serializable, the passivation error no longer happens for session scoped ItemProcessor, but error &#8220;eedemo.ItemProcessor is not proxyable&#8221; is seen, as in the request scope case.  It just doesn&#8217;t like constructor injection.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert, Austin, Texas</title>
		<link>http://www.andygibson.net/blog/tutorial/getting-started-with-cdi-part-2-injection/comment-page-1/#comment-14437</link>
		<dc:creator>Robert, Austin, Texas</dc:creator>
		<pubDate>Thu, 08 Apr 2010 20:30:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.andygibson.net/blog/?p=706#comment-14437</guid>
		<description>Andy,
Having the same problem as Fred has with not being able to do injection into a constructor:
&quot;ItemProcessor is not proxyable&quot;
I am running glassfish v3 in Netbeans 6.8 IDE.
in the case above ItemProcessor is request scoped.

If I change scope to session I see a different error involving the bean not being passivatable.</description>
		<content:encoded><![CDATA[<p>Andy,<br />
Having the same problem as Fred has with not being able to do injection into a constructor:<br />
&#8220;ItemProcessor is not proxyable&#8221;<br />
I am running glassfish v3 in Netbeans 6.8 IDE.<br />
in the case above ItemProcessor is request scoped.</p>
<p>If I change scope to session I see a different error involving the bean not being passivatable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Gibson</title>
		<link>http://www.andygibson.net/blog/tutorial/getting-started-with-cdi-part-2-injection/comment-page-1/#comment-14430</link>
		<dc:creator>Andy Gibson</dc:creator>
		<pubDate>Sat, 20 Mar 2010 04:22:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.andygibson.net/blog/?p=706#comment-14430</guid>
		<description>Yes, you do need to be careful since many of the annotations have similar names. It is really an annoyance that I don&#039;t believe will go away any time soon.

However, thanks for posting, if nothing else, it might be a good idea to include some of the import statements in my code examples, 

Thanks,

Andy</description>
		<content:encoded><![CDATA[<p>Yes, you do need to be careful since many of the annotations have similar names. It is really an annoyance that I don&#8217;t believe will go away any time soon.</p>
<p>However, thanks for posting, if nothing else, it might be a good idea to include some of the import statements in my code examples, </p>
<p>Thanks,</p>
<p>Andy</p>
]]></content:encoded>
	</item>
</channel>
</rss>
