[jboss-user] [JBoss Seam] - Re: Warning: do not use Seam managed pesistent context for B

2007-10-01 Thread [EMAIL PROTECTED]
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

[jboss-user] [JBoss Seam] - Re: Warning: do not use Seam managed pesistent context for B

2007-10-01 Thread koenhandekyn
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

[jboss-user] [JBoss Seam] - Re: Warning: do not use Seam managed pesistent context for B

2007-10-01 Thread [EMAIL PROTECTED]
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

[jboss-user] [JBoss Seam] - Re: Warning: do not use Seam managed pesistent context for B

2007-10-01 Thread stephen.friedrich
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 :

[jboss-user] [JBoss Seam] - Re: Warning: do not use Seam managed pesistent context for B

2007-10-01 Thread koenhandekyn
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

[jboss-user] [JBoss Seam] - Re: Warning: do not use Seam managed pesistent context for B

2007-10-01 Thread monkeyden
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 :)