[jboss-user] [JBoss Seam] - Re: Warning: do not use Seam managed pesistent context for B
What does doesn't work mean? I bet it would work just fine if you would call entityManager.joinTransaction() in your method before you use the EntityManager. Of course the @Injected EM will not join the transaction automatically because the transaction is started AFTER injection, when the method is called. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4090200#4090200 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4090200 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Warning: do not use Seam managed pesistent context for B
christian thanx for the clarification. i will try your proposal of explicitely calling joinTransaction, but i expect it to work :) still it is kind of confusing to me as it is working perfectly for the @PersistenceContext inject entityManager. i conclude that this one is joining the transaction auto-magically i'm wondering what the rationale is for not having the seam managed entityManager auto-magically join the user transaction ? ( and have a different behaviour than the EJB3 inject persitenceContext) thanx for any clarification or rationale koen View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4090206#4090206 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4090206 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Warning: do not use Seam managed pesistent context for B
Read this again: anonymous wrote : Of course the @Injected EM will not join the transaction automatically because the transaction is started AFTER injection, when the method is called. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4090208#4090208 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4090208 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Warning: do not use Seam managed pesistent context for B
Occurence count of the string joinTransaction in Seam 1.2.1 reference: 0 2.0 improved on that: Method is shown in exactly one code example without any comment :-( View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4090219#4090219 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4090219 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Warning: do not use Seam managed pesistent context for B
The good news is that indeed, a joinTransaction() call does the job with @In injected entityManager. anonymous wrote : Of course the @Injected EM will not join the transaction automatically because the transaction is started AFTER injection, when the method is called i think i understand your remark: seam injection occurs just in front of each method invocation and the transasction is only started in the method! however, @PersistenceContext injection occurs somewhere at bean creation and even earlier if i understand well. so while I think I understand the seam behaviour now (joining makes sense), i'm still confused why i don't have to do a joinTransaction with @PersistenceContext injected entityManager (where does the join happen?) and why the behaviour should be different. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4090276#4090276 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4090276 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Warning: do not use Seam managed pesistent context for B
anonymous wrote : I bet it would work just fine if you would call entityManager.joinTransaction() Not that there was any doubt but Christian is exactly right. See my topic from just a couple weeks ago: http://www.jboss.com/index.html?module=bbop=viewtopict=118996 RTF - Read the forum :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4090320#4090320 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4090320 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user