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=bb&op=viewtopic&t=118996
RTF - Read the forum :)
V
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
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=bb&op=viewtopic&p=4090219#4090219
Reply to the post :
http://www
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=bb&op=viewtopic&p=4090208#4090208
Reply to
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 transactio
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 met