This content has been marked as final.
Show 4 replies
-
1. Re: lazy initialization and @PersistenceContext(EXTENDED)
kknull Nov 15, 2005 6:56 AM (in response to kknull)any ideas?..
-
2. Re: lazy initialization and @PersistenceContext(EXTENDED)
kknull Nov 15, 2005 12:36 PM (in response to kknull)strange,strange,strange..
Switching into app-managed extended persistence context (by ejb3 specs) did not solve a problem:@Stateful public class TestBeanImpl implements TestBean { @PersistenceUnit private EntityManagerFactory emf; private EntityManager em; @PostConstruct public void PostConstruct() { em = emf.createEntityManager(PersistenceContextType.EXTENDED); } @Remove public void shutdown() { em.close(); } .... }
I tried to wrap a call into the UserTransaction and play with @TransactionAttribute - nothing changed
Is it a weird container's behaviour or maybe I missed something from JBoss docs or specification?..
Please help =( -
3. Re: lazy initialization and @PersistenceContext(EXTENDED)
patrick_ibg Nov 15, 2005 1:15 PM (in response to kknull)Maybe the problem is with your X and Y mappings?
-
4. Re: lazy initialization and @PersistenceContext(EXTENDED)
kknull Nov 15, 2005 2:41 PM (in response to kknull)=( thank you, too late..
i found that was a many-to-many associated coolection lazy initialization bug, the description is here..
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3890699#3890699