<?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 JSF 2.0 and CDI in JEE 6 part 1</title>
	<atom:link href="http://www.andygibson.net/blog/2009/12/16/getting-started-with-jsf-2-0-and-cdi-in-jee-6-part-1/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.andygibson.net/blog/tutorial/getting-started-with-jsf-2-0-and-cdi-in-jee-6-part-1/</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: Paul Vincent</title>
		<link>http://www.andygibson.net/blog/tutorial/getting-started-with-jsf-2-0-and-cdi-in-jee-6-part-1/comment-page-1/#comment-14425</link>
		<dc:creator>Paul Vincent</dc:creator>
		<pubDate>Sun, 14 Mar 2010 19:31:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.andygibson.net/blog/?p=647#comment-14425</guid>
		<description>Thank&#039;s Andy Gibson, for this preview of two of the best players actually : Seam, an evolution of JEE, transformed in the JSR-299, and Facelets, now the default view of JSF2.0.  
Thank you very much, Seam (Gavin)</description>
		<content:encoded><![CDATA[<p>Thank&#8217;s Andy Gibson, for this preview of two of the best players actually : Seam, an evolution of JEE, transformed in the JSR-299, and Facelets, now the default view of JSF2.0.<br />
Thank you very much, Seam (Gavin)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Gibson</title>
		<link>http://www.andygibson.net/blog/tutorial/getting-started-with-jsf-2-0-and-cdi-in-jee-6-part-1/comment-page-1/#comment-14363</link>
		<dc:creator>Andy Gibson</dc:creator>
		<pubDate>Mon, 08 Feb 2010 06:38:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.andygibson.net/blog/?p=647#comment-14363</guid>
		<description>Apologies Daniel, I thought I had replied to your comment. 

If it is the thing I think you are seeing, I believe this is an NPE on redeploy where it cannot restore the session state so the session data prior to the redeploy is lost. While this might be an error, its not one I care about to much since the redeploy works just fine, just the session information is lost which I can live with for the things I do with it.  In short the answer is, no I don&#039;t have a work around, it seems to be fixed though, but even if it isn&#039;t in your current version, don&#039;t worry about it unless having a reset session state on redeploy is a big deal.

Cheers,

Andy</description>
		<content:encoded><![CDATA[<p>Apologies Daniel, I thought I had replied to your comment. </p>
<p>If it is the thing I think you are seeing, I believe this is an NPE on redeploy where it cannot restore the session state so the session data prior to the redeploy is lost. While this might be an error, its not one I care about to much since the redeploy works just fine, just the session information is lost which I can live with for the things I do with it.  In short the answer is, no I don&#8217;t have a work around, it seems to be fixed though, but even if it isn&#8217;t in your current version, don&#8217;t worry about it unless having a reset session state on redeploy is a big deal.</p>
<p>Cheers,</p>
<p>Andy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://www.andygibson.net/blog/tutorial/getting-started-with-jsf-2-0-and-cdi-in-jee-6-part-1/comment-page-1/#comment-14341</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Sun, 24 Jan 2010 06:01:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.andygibson.net/blog/?p=647#comment-14341</guid>
		<description>How were you able to work around the problem one of your other readers submitted here: https://jira.jboss.org/jira/browse/WELD-350 (NPE on redeploy).

There is a comment 13/1 to say that it is fixed in trunk. Did you need to patch your GlassFish installation?

I have tried starting GlassFish with a different weld-osgi-bundle I found here:
http://oss.sonatype.org/content/groups/jboss/org/jboss/weld/weld-osgi-bundle/1.0.1-SNAPSHOT/</description>
		<content:encoded><![CDATA[<p>How were you able to work around the problem one of your other readers submitted here: <a href="https://jira.jboss.org/jira/browse/WELD-350" rel="nofollow">https://jira.jboss.org/jira/browse/WELD-350</a> (NPE on redeploy).</p>
<p>There is a comment 13/1 to say that it is fixed in trunk. Did you need to patch your GlassFish installation?</p>
<p>I have tried starting GlassFish with a different weld-osgi-bundle I found here:<br />
<a href="http://oss.sonatype.org/content/groups/jboss/org/jboss/weld/weld-osgi-bundle/1.0.1-SNAPSHOT/" rel="nofollow">http://oss.sonatype.org/content/groups/jboss/org/jboss/weld/weld-osgi-bundle/1.0.1-SNAPSHOT/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GlassFish v3 Resources and Links &#8211; Part 2 &#124; Developer @ UniUrs</title>
		<link>http://www.andygibson.net/blog/tutorial/getting-started-with-jsf-2-0-and-cdi-in-jee-6-part-1/comment-page-1/#comment-14337</link>
		<dc:creator>GlassFish v3 Resources and Links &#8211; Part 2 &#124; Developer @ UniUrs</dc:creator>
		<pubDate>Sat, 16 Jan 2010 01:09:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.andygibson.net/blog/?p=647#comment-14337</guid>
		<description>[...] Getting Started with JSF 2.0 and CDI in JEE 6 part 1 [...]</description>
		<content:encoded><![CDATA[<p>[...] Getting Started with JSF 2.0 and CDI in JEE 6 part 1 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: uberVU - social comments</title>
		<link>http://www.andygibson.net/blog/tutorial/getting-started-with-jsf-2-0-and-cdi-in-jee-6-part-1/comment-page-1/#comment-14309</link>
		<dc:creator>uberVU - social comments</dc:creator>
		<pubDate>Sun, 27 Dec 2009 09:30:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.andygibson.net/blog/?p=647#comment-14309</guid>
		<description>&lt;strong&gt;Social comments and analytics for this post...&lt;/strong&gt;

This post was mentioned on Twitter by yigitdarcin: Nice article on JSF2.0 and CDI http://www.andygibson.net/blog/index.php/2009/12/16/getting-started-with-jsf-2-0-and-cdi-in-jee-6-part-1/...</description>
		<content:encoded><![CDATA[<p><strong>Social comments and analytics for this post&#8230;</strong></p>
<p>This post was mentioned on Twitter by yigitdarcin: Nice article on JSF2.0 and CDI <a href="http://www.andygibson.net/blog/index.php/2009/12/16/getting-started-with-jsf-2-0-and-cdi-in-jee-6-part-1/.." rel="nofollow">http://www.andygibson.net/blog/index.php/2009/12/16/getting-started-with-jsf-2-0-and-cdi-in-jee-6-part-1/..</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Getting Started with CDI part 2 &#8211; Injection &#124; Andy Gibson</title>
		<link>http://www.andygibson.net/blog/tutorial/getting-started-with-jsf-2-0-and-cdi-in-jee-6-part-1/comment-page-1/#comment-14300</link>
		<dc:creator>Getting Started with CDI part 2 &#8211; Injection &#124; Andy Gibson</dc:creator>
		<pubDate>Tue, 22 Dec 2009 18:44:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.andygibson.net/blog/?p=647#comment-14300</guid>
		<description>[...] Articles                   &#171; Getting Started with JSF 2.0 and CDI in JEE 6 part 1 [...]</description>
		<content:encoded><![CDATA[<p>[...] Articles                   &laquo; Getting Started with JSF 2.0 and CDI in JEE 6 part 1 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Gibson</title>
		<link>http://www.andygibson.net/blog/tutorial/getting-started-with-jsf-2-0-and-cdi-in-jee-6-part-1/comment-page-1/#comment-14298</link>
		<dc:creator>Andy Gibson</dc:creator>
		<pubDate>Mon, 21 Dec 2009 19:14:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.andygibson.net/blog/?p=647#comment-14298</guid>
		<description>Ah great stuff David, I really like the JSF support in Netbeans 6.8 and am looking forward to the new CDI support.

I think Netbeans 6.8 is providing better support and features for Java EE 6 than it has for any of the previous versions making it a really attractive environment for a really attractive platform.</description>
		<content:encoded><![CDATA[<p>Ah great stuff David, I really like the JSF support in Netbeans 6.8 and am looking forward to the new CDI support.</p>
<p>I think Netbeans 6.8 is providing better support and features for Java EE 6 than it has for any of the previous versions making it a really attractive environment for a really attractive platform.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Konecny</title>
		<link>http://www.andygibson.net/blog/tutorial/getting-started-with-jsf-2-0-and-cdi-in-jee-6-part-1/comment-page-1/#comment-14296</link>
		<dc:creator>David Konecny</dc:creator>
		<pubDate>Sun, 20 Dec 2009 22:46:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.andygibson.net/blog/?p=647#comment-14296</guid>
		<description>Agreed, it is a shame auto completion does not work for CDI beans. I&#039;m a member of NetBeans team which works on Java EE 6 support and I will make sure we fix it ASAP. CDI specification changed several times and we could not include support for CDI in NetBeans 6.8 because of time and resource constraints. I don&#039;t know exact date when NetBeans CDI support module will be available, especially with coming Christmas break, but what I know is that it has already some other cool features like navigation from injection point to class being injected. Also the need to create beans.xml should be simplified by the IDE if not done automatically.

Thanks for your feedback,
David</description>
		<content:encoded><![CDATA[<p>Agreed, it is a shame auto completion does not work for CDI beans. I&#8217;m a member of NetBeans team which works on Java EE 6 support and I will make sure we fix it ASAP. CDI specification changed several times and we could not include support for CDI in NetBeans 6.8 because of time and resource constraints. I don&#8217;t know exact date when NetBeans CDI support module will be available, especially with coming Christmas break, but what I know is that it has already some other cool features like navigation from injection point to class being injected. Also the need to create beans.xml should be simplified by the IDE if not done automatically.</p>
<p>Thanks for your feedback,<br />
David</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Gibson</title>
		<link>http://www.andygibson.net/blog/tutorial/getting-started-with-jsf-2-0-and-cdi-in-jee-6-part-1/comment-page-1/#comment-14293</link>
		<dc:creator>Andy Gibson</dc:creator>
		<pubDate>Sat, 19 Dec 2009 19:37:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.andygibson.net/blog/?p=647#comment-14293</guid>
		<description>Geraldo, yes, it&#039;s a shame the auto completion in Netbeans doesn&#039;t have CDI beans included which I&#039;ve also mentioned in other posts. It&#039;s a shame that just as standard JSF gets some nice auto completion, every is moving to (or should be moving to) CDI. 

Ignacio, no idea on the error, it may depend on something else in your code as I haven&#039;t experienced it. There are a number of examples (in the docs and I think on Gavins blog) about setting up a producer method to make a persistence context available in any CDI bean. Off the top of my head, it is as simple as creating a bean into which you put the persistence context and mark the getEntityManager() method as a producer. (something like that).</description>
		<content:encoded><![CDATA[<p>Geraldo, yes, it&#8217;s a shame the auto completion in Netbeans doesn&#8217;t have CDI beans included which I&#8217;ve also mentioned in other posts. It&#8217;s a shame that just as standard JSF gets some nice auto completion, every is moving to (or should be moving to) CDI. </p>
<p>Ignacio, no idea on the error, it may depend on something else in your code as I haven&#8217;t experienced it. There are a number of examples (in the docs and I think on Gavins blog) about setting up a producer method to make a persistence context available in any CDI bean. Off the top of my head, it is as simple as creating a bean into which you put the persistence context and mark the getEntityManager() method as a producer. (something like that).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ignacio de Córdoba</title>
		<link>http://www.andygibson.net/blog/tutorial/getting-started-with-jsf-2-0-and-cdi-in-jee-6-part-1/comment-page-1/#comment-14291</link>
		<dc:creator>Ignacio de Córdoba</dc:creator>
		<pubDate>Sat, 19 Dec 2009 00:33:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.andygibson.net/blog/?p=647#comment-14291</guid>
		<description>Maybe it&#039;s related to the severe warning shown when using javax.ejb.Singleton (Weld javax.inject.Singleton doesn&#039;t show that error) Any idea why?

[#&#124;2009-12-19T01:29:19.423+0100&#124;SEVERE&#124;glassfish&#124;global&#124;_ThreadID=16;_ThreadName=Thread-1;&#124;The annotation symbol defined in super-class is not compatible with Session ejb ElaphusManager.

Anyway, I can also get JEE injection services (@PersistenceContext for example) when using @ManagedBean. @Named annotation will just return an instance of the class without any JEE services.
 symbol: TYPE location: class com.cervatoh2.elaphus.ejb.ElaphusManagerBean</description>
		<content:encoded><![CDATA[<p>Maybe it&#8217;s related to the severe warning shown when using javax.ejb.Singleton (Weld javax.inject.Singleton doesn&#8217;t show that error) Any idea why?</p>
<p>[#|2009-12-19T01:29:19.423+0100|SEVERE|glassfish|global|_ThreadID=16;_ThreadName=Thread-1;|The annotation symbol defined in super-class is not compatible with Session ejb ElaphusManager.</p>
<p>Anyway, I can also get JEE injection services (@PersistenceContext for example) when using @ManagedBean. @Named annotation will just return an instance of the class without any JEE services.<br />
 symbol: TYPE location: class com.cervatoh2.elaphus.ejb.ElaphusManagerBean</p>
]]></content:encoded>
	</item>
</channel>
</rss>
