[seam-dev] Re: Blocked threads
Christian Bauer
cbauer at redhat.com
Thu Jun 5 09:49:41 EDT 2008
> - Removing the joinTransaction() that is triggered on every
> EntityHome.getInstance(). EntityQuery and EntityIdentity do the
> same. This also doesn't seem to be necessary, at least not for Seams
> ManagedPersistenceContext which enlists the EM with the transaction
> on @Unwrap (and it has a condition that avoids double-joins - hence
> only one UT JNDI lookup per request).
Checked with Emmanuel: At least for Hibernate it is OK to call
entityManager.joinTransaction() repeatedly, it caches. However, the
way Seam is doing it there always is a Transaction.instance() first
which does a JNDI lookup. This gives us some more ways how we can
rewrite that part of the code.
More information about the seam-dev
mailing list