Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] Accessing a lazy-field of a managed entity in another thread

Hi all.
 
Say I have this code:
 
Person person = em.find(...)
asyncDispatcher.process(person) // hands managed entity to another thread
 
Then some other thread calls person.getLazyMappedCollection.foreach(...)
 
Is this safe or may it result in all sorts of exceptions and/or resource-leaks (sql.Connection/ResultSet leak etc.)?
 
Thanks.
 
--
Andreas Joseph Krogh
CTO / Partner - Visena AS
Mobile: +47 909 56 963

Back to the top