<?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: EJB 3.1 and JSF 2.0 with GlassFish V3 Prelude</title>
	<atom:link href="http://blog.rueedlinger.ch/2008/11/ejb-31-and-jsf-20-with-glassfish-v3-prelude/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.rueedlinger.ch/2008/11/ejb-31-and-jsf-20-with-glassfish-v3-prelude/</link>
	<description>Software Engineering and Java</description>
	<lastBuildDate>Thu, 03 Dec 2009 23:26:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: malen christian</title>
		<link>http://blog.rueedlinger.ch/2008/11/ejb-31-and-jsf-20-with-glassfish-v3-prelude/comment-page-1/#comment-282</link>
		<dc:creator>malen christian</dc:creator>
		<pubDate>Thu, 03 Dec 2009 23:26:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rueedlinger.ch/?p=17#comment-282</guid>
		<description>Hi, 
Thanks for your tuto. 
With Java 1.6 and JSF 2.0 I had to modify the import statement of BookManagedBean.java : 
&quot;import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;&quot; (from model to bean ) with (jsf-api version 2.0.2-b10 in pom.xml)

to make it compiling.
There is a warning that I do not understand : 
The expression ${pom.artifactId} is deprecated. Please use ${project.artifactId} instead. 
Any idea ?
thanks very much since your tuto had been very helpfull !

regards
cm</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Thanks for your tuto.<br />
With Java 1.6 and JSF 2.0 I had to modify the import statement of BookManagedBean.java :<br />
&#8220;import javax.faces.bean.ManagedBean;<br />
import javax.faces.bean.SessionScoped;&#8221; (from model to bean ) with (jsf-api version 2.0.2-b10 in pom.xml)</p>
<p>to make it compiling.<br />
There is a warning that I do not understand :<br />
The expression ${pom.artifactId} is deprecated. Please use ${project.artifactId} instead.<br />
Any idea ?<br />
thanks very much since your tuto had been very helpfull !</p>
<p>regards<br />
cm</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthias Rüedlinger</title>
		<link>http://blog.rueedlinger.ch/2008/11/ejb-31-and-jsf-20-with-glassfish-v3-prelude/comment-page-1/#comment-279</link>
		<dc:creator>Matthias Rüedlinger</dc:creator>
		<pubDate>Fri, 27 Nov 2009 18:13:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rueedlinger.ch/?p=17#comment-279</guid>
		<description>Hello Steve

Thanks for your comment.

Concurrency is a common problem for web applications. My example is a bit outdated and was attempt to show how ejb 3.1 and jsf interact together in a pre-release of galssfish.

So the keyword to your problem could be locking / optimistic locking.

Perhaps the following article can help you.

Locking and Concurrency in Java Persistence 2.0
http://blogs.sun.com/enterprisetechtips/entry/locking_and_concurrency_in_java

or when your work with Hibernate
http://docs.jboss.org/hibernate/core/3.3/reference/en/html/transactions.html

Regards

Matt</description>
		<content:encoded><![CDATA[<p>Hello Steve</p>
<p>Thanks for your comment.</p>
<p>Concurrency is a common problem for web applications. My example is a bit outdated and was attempt to show how ejb 3.1 and jsf interact together in a pre-release of galssfish.</p>
<p>So the keyword to your problem could be locking / optimistic locking.</p>
<p>Perhaps the following article can help you.</p>
<p>Locking and Concurrency in Java Persistence 2.0<br />
<a href="http://blogs.sun.com/enterprisetechtips/entry/locking_and_concurrency_in_java" rel="nofollow">http://blogs.sun.com/enterprisetechtips/entry/locking_and_concurrency_in_java</a></p>
<p>or when your work with Hibernate<br />
<a href="http://docs.jboss.org/hibernate/core/3.3/reference/en/html/transactions.html" rel="nofollow">http://docs.jboss.org/hibernate/core/3.3/reference/en/html/transactions.html</a></p>
<p>Regards</p>
<p>Matt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blog.rueedlinger.ch/2008/11/ejb-31-and-jsf-20-with-glassfish-v3-prelude/comment-page-1/#comment-278</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Fri, 27 Nov 2009 12:16:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rueedlinger.ch/?p=17#comment-278</guid>
		<description>Thanks for the great tutorial. Info on JSF2 is thin on the ground and I found your blog very enlightening.

With regard to storing the book being edited in a session scoped bean:- it seems the faces session is equivalent to the HttpSession and therefore the user can only edit one book at a time?

Even worse, if the use opens two records for edit at the same time they can overwrite the wrong record!

I&#039;ve noticed that if 
- I open the list in two browsers tabs
- select book 1 in the first
- select book 2 in the second
- edit and save book 1 in the first 
- then book 2 is actually updated with the data entered for book 1. 

(complicated but, unfortunately, within the realms of possibility for the average user) 

I&#039;m new to JFS so I&#039;m wondering if I&#039;m missing something? Is there a way around storing the entity bean in the session? 

I&#039;ve been racking my brain for a way to start a transaction (txn) at the edit action, then pick up the same txn object at the save, delete actions? #{BookBean.txnBook.title} kind of thing?

Can you offer any guidance to a Noob?

Thanks,
Steve.</description>
		<content:encoded><![CDATA[<p>Thanks for the great tutorial. Info on JSF2 is thin on the ground and I found your blog very enlightening.</p>
<p>With regard to storing the book being edited in a session scoped bean:- it seems the faces session is equivalent to the HttpSession and therefore the user can only edit one book at a time?</p>
<p>Even worse, if the use opens two records for edit at the same time they can overwrite the wrong record!</p>
<p>I&#8217;ve noticed that if<br />
- I open the list in two browsers tabs<br />
- select book 1 in the first<br />
- select book 2 in the second<br />
- edit and save book 1 in the first<br />
- then book 2 is actually updated with the data entered for book 1. </p>
<p>(complicated but, unfortunately, within the realms of possibility for the average user) </p>
<p>I&#8217;m new to JFS so I&#8217;m wondering if I&#8217;m missing something? Is there a way around storing the entity bean in the session? </p>
<p>I&#8217;ve been racking my brain for a way to start a transaction (txn) at the edit action, then pick up the same txn object at the save, delete actions? #{BookBean.txnBook.title} kind of thing?</p>
<p>Can you offer any guidance to a Noob?</p>
<p>Thanks,<br />
Steve.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthias Rüedlinger</title>
		<link>http://blog.rueedlinger.ch/2008/11/ejb-31-and-jsf-20-with-glassfish-v3-prelude/comment-page-1/#comment-224</link>
		<dc:creator>Matthias Rüedlinger</dc:creator>
		<pubDate>Wed, 04 Feb 2009 17:19:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rueedlinger.ch/?p=17#comment-224</guid>
		<description>Thanks Cay for the hint.

Cay said:
&gt; In your example, you (or maybe Maven) put persistence.xml in 
&gt; two places,
&gt; and it took me a while to find out where it needs to go. I put an
&gt; example with an Ant script at
&gt; http://weblogs.java.net/blog/cayhorstmann/archive/2009/02/towards_java_ee.html</description>
		<content:encoded><![CDATA[<p>Thanks Cay for the hint.</p>
<p>Cay said:<br />
> In your example, you (or maybe Maven) put persistence.xml in<br />
> two places,<br />
> and it took me a while to find out where it needs to go. I put an<br />
> example with an Ant script at<br />
> <a href="http://weblogs.java.net/blog/cayhorstmann/archive/2009/02/towards_java_ee.html" rel="nofollow">http://weblogs.java.net/blog/cayhorstmann/archive/2009/02/towards_java_ee.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cay Horstmann</title>
		<link>http://blog.rueedlinger.ch/2008/11/ejb-31-and-jsf-20-with-glassfish-v3-prelude/comment-page-1/#comment-222</link>
		<dc:creator>Cay Horstmann</dc:creator>
		<pubDate>Sun, 01 Feb 2009 15:42:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rueedlinger.ch/?p=17#comment-222</guid>
		<description>I tried this today and got the following error message that is only too familiar from the bad old days:

message: Exception while deploying the app : java.lang.RuntimeExceptio
 n: Invalid ejb jar [CRUD-GFv3]: it contains zero ejb. 
Note: 
1. A va
 lid ejb jar requires at least one session, entity (1.x/2.x style), or
  message driven bean. 
2. EJB3+ entity beans (@Entity) are POJOs and 
 please package them as library jar. 
3. If the jar file contains vali
 d EJBs which are annotated with EJB component level annotations (@Sta
 teless, @Stateful, @MessageDriven), please check server.log to see wh
 ether the annotations were processed properly.
exit-code: FAILURE

Any clue what might have changed?

Thanks,

Cay</description>
		<content:encoded><![CDATA[<p>I tried this today and got the following error message that is only too familiar from the bad old days:</p>
<p>message: Exception while deploying the app : java.lang.RuntimeExceptio<br />
 n: Invalid ejb jar [CRUD-GFv3]: it contains zero ejb.<br />
Note:<br />
1. A va<br />
 lid ejb jar requires at least one session, entity (1.x/2.x style), or<br />
  message driven bean.<br />
2. EJB3+ entity beans (@Entity) are POJOs and<br />
 please package them as library jar.<br />
3. If the jar file contains vali<br />
 d EJBs which are annotated with EJB component level annotations (@Sta<br />
 teless, @Stateful, @MessageDriven), please check server.log to see wh<br />
 ether the annotations were processed properly.<br />
exit-code: FAILURE</p>
<p>Any clue what might have changed?</p>
<p>Thanks,</p>
<p>Cay</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonas</title>
		<link>http://blog.rueedlinger.ch/2008/11/ejb-31-and-jsf-20-with-glassfish-v3-prelude/comment-page-1/#comment-72</link>
		<dc:creator>Jonas</dc:creator>
		<pubDate>Fri, 26 Dec 2008 23:29:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rueedlinger.ch/?p=17#comment-72</guid>
		<description>I tried to implement the same application with Grails on GlassFish V3 Prelude.

I wrote a post about that here:
http://blog.jonasbandi.net/2008/12/simplistic-crud-application-with-grails.html</description>
		<content:encoded><![CDATA[<p>I tried to implement the same application with Grails on GlassFish V3 Prelude.</p>
<p>I wrote a post about that here:<br />
<a href="http://blog.jonasbandi.net/2008/12/simplistic-crud-application-with-grails.html" rel="nofollow">http://blog.jonasbandi.net/2008/12/simplistic-crud-application-with-grails.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonas</title>
		<link>http://blog.rueedlinger.ch/2008/11/ejb-31-and-jsf-20-with-glassfish-v3-prelude/comment-page-1/#comment-49</link>
		<dc:creator>Jonas</dc:creator>
		<pubDate>Sun, 14 Dec 2008 13:00:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rueedlinger.ch/?p=17#comment-49</guid>
		<description>I think the resource section in the pom.xml is not necessary for this app? 
Since we have the resource section for the war plugin...</description>
		<content:encoded><![CDATA[<p>I think the resource section in the pom.xml is not necessary for this app?<br />
Since we have the resource section for the war plugin&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonas</title>
		<link>http://blog.rueedlinger.ch/2008/11/ejb-31-and-jsf-20-with-glassfish-v3-prelude/comment-page-1/#comment-48</link>
		<dc:creator>Jonas</dc:creator>
		<pubDate>Sun, 14 Dec 2008 12:46:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rueedlinger.ch/?p=17#comment-48</guid>
		<description>Finally found time to play with this example.
Works great also under OS X.

I only had a small problem that the updatetool did not list the JSF 2.0 update.
The admin-console however did list the update.
Could be this bug: https://updatecenter2.dev.java.net/issues/show_bug.cgi?id=774

Thanks.</description>
		<content:encoded><![CDATA[<p>Finally found time to play with this example.<br />
Works great also under OS X.</p>
<p>I only had a small problem that the updatetool did not list the JSF 2.0 update.<br />
The admin-console however did list the update.<br />
Could be this bug: <a href="https://updatecenter2.dev.java.net/issues/show_bug.cgi?id=774" rel="nofollow">https://updatecenter2.dev.java.net/issues/show_bug.cgi?id=774</a></p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivan Mikushin</title>
		<link>http://blog.rueedlinger.ch/2008/11/ejb-31-and-jsf-20-with-glassfish-v3-prelude/comment-page-1/#comment-47</link>
		<dc:creator>Ivan Mikushin</dc:creator>
		<pubDate>Sun, 14 Dec 2008 09:02:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rueedlinger.ch/?p=17#comment-47</guid>
		<description>Hi Matt,

I&#039;ve encountered the same compile error as Rogerio, and I have source and target compiler settings set to &quot;1.6&quot;: 
      
        org.apache.maven.plugins
        maven-compiler-plugin
        
          1.6
          1.6
        
      

The cause is: javax.javaee dependency includes jsf-api-1.2 which doesn&#039;t have parameterized classes. To make the project compile we need to exclude it from the dependency tree (so jsf-api-2.0.0-b05 takes effect):

    
      org.glassfish
      javax.javaee
      3.0-Prelude
      provided
      
          
              javax.faces
              jsf-api
          
      
    </description>
		<content:encoded><![CDATA[<p>Hi Matt,</p>
<p>I&#8217;ve encountered the same compile error as Rogerio, and I have source and target compiler settings set to &#8220;1.6&#8243;: </p>
<p>        org.apache.maven.plugins<br />
        maven-compiler-plugin</p>
<p>          1.6<br />
          1.6</p>
<p>The cause is: javax.javaee dependency includes jsf-api-1.2 which doesn&#8217;t have parameterized classes. To make the project compile we need to exclude it from the dependency tree (so jsf-api-2.0.0-b05 takes effect):</p>
<p>      org.glassfish<br />
      javax.javaee<br />
      3.0-Prelude<br />
      provided</p>
<p>              javax.faces<br />
              jsf-api</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthias Rüedlinger</title>
		<link>http://blog.rueedlinger.ch/2008/11/ejb-31-and-jsf-20-with-glassfish-v3-prelude/comment-page-1/#comment-37</link>
		<dc:creator>Matthias Rüedlinger</dc:creator>
		<pubDate>Wed, 10 Dec 2008 21:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rueedlinger.ch/?p=17#comment-37</guid>
		<description>Hi rogerio

I&#039;m not sure but it seemed that the following declaration causes the error.

&lt;code class=&quot;code&quot;&gt;
    private DataModel&lt;Book&gt; books;
&lt;/code&gt;

Do you have a least Java 5? Because this statement uses generics? I googled and I found some similar build failures which occurred when not at least a java 5 compiler was used.

Matt</description>
		<content:encoded><![CDATA[<p>Hi rogerio</p>
<p>I&#8217;m not sure but it seemed that the following declaration causes the error.</p>
<p><code class="code"><br />
    private DataModel<book> books;<br />
</book></code></p>
<p>Do you have a least Java 5? Because this statement uses generics? I googled and I found some similar build failures which occurred when not at least a java 5 compiler was used.</p>
<p>Matt</p>
]]></content:encoded>
	</item>
</channel>
</rss>
